どういうわけか、これは Maya/Python スクリプト エディタでは正常に機能しますが、モジュール コード内にあると失敗します。誰にもアイデアはありますか?
class ControlShape(object):
def __init__(self, *args, **kwargs):
print 'Inside ControlShape...'
class Cross(ControlShape):
def __init__(self, *args, **kwargs):
print 'Entering Cross...'
super(Cross, self).__init__(*args, **kwargs)
print 'Leaving Cross...'
x = Cross()
これにより TypeError: super(type, obj): obj must be an instance or subtype of type が発生します。