def traverse(self, recursive=True, verbose=False): packer = DNAProp.traverse(self, recursive=False, verbose=verbose) packer.name = 'DNAAnimProp' # Override the name for debugging. packer.pack('anim name', self.animName, STRING) if recursive: packer += self.traverseChildren(verbose=verbose) return packer
def __init__(self, name): DNAProp.__init__(self, name) self.animName = ''
def __init__(self, name, code, anim): DNAProp.__init__(self, name, code) self.anim = anim
def _makeNode(self, parent, storage): node = DNAProp._makeNode(self, parent, storage) node.setTag('DNAAnim', self.anim) return node
def __init__(self): DNAProp.__init__(self) anim = ""