def onMapping( self, *args ): mapping = Mapping( cmd.ls(sl=True), self.clipObjs ) #gah... convert the mapping to the type of mapping expected by the xfer anim editor - ie a single source maps to a list of targets instead of a single target... need to turn the mapping into a class of some description methinks xferAnimMapping = {} for src, tgt in mapping.iteritems(): xferAnimMapping[ src ] = [ tgt ] xferAnimUI.XferAnimEditor( mapping=xferAnimMapping, clipPreset=self.clipPreset )
def onMapping(self, *args): mapping = Mapping(cmd.ls(sl=True), self.clipObjs) #convert the mapping to the type of mapping expected by the xfer anim editor - ie a single source maps to a list of targets instead of a single target... xferAnimMapping = {} for src, tgt in mapping.iteritems(): xferAnimMapping[src] = [tgt] xferAnimUI.XferAnimEditor(mapping=xferAnimMapping, clipPreset=self.clipPreset)