我不明白如何让继承工作的任何在线文档。Python的 - 继承
我有这样的位置:
import maya.cmds as cmds
class RigLegs():
def __init__(self, *args):
self.rigLegs()
def rigLegs(self):
self.items["side"] = "left"
self.lIK = cmds.duplicate(self.lJoints["hip"], n = self.getName("hip_IK"))
for i in self.lIK:
newName = i[0].replace("_JNT", "_IK")
cmds.rename(i, newName)
但它的抱怨是没有self.items - 我不得不从另一个类,这是过于庞大,张贴在这里继承它。任何人都可以帮我弄清楚如何做到这一点?我在网上进行过研究,没有任何意义。
其他类完全在不同的文件中。
'类RigLegs(父类)'? – Ryan 2013-04-08 23:10:59