def preDrag(self): self._objs = objs = cmd.ls(sl=True) theClip = self.clipPreset.clip() mapping = mappingUtils.matchNames(theClip.getNodes(), objs) #generate a new clip based on the current pose of the current selection - we're going to blend between it and the stored pose clip self._preClip = theClip.Generate(objs) #now setup a mapping between the selection and the nodes stored in the clip and set the mapping self._mappedClip = theClip.setMapping(mapping) self._applyKwargs = self.getApplyKwargs() #open an undo chunk and close it when the slider finishes dragging... self._chunkOpened = cmd.undoInfo(openChunk=True)
def preDrag( self ): self._objs = objs = cmd.ls( sl=True ) theClip = self.clipPreset.clip() mapping = mappingUtils.matchNames( theClip.getNodes(), objs ) #generate a new clip based on the current pose of the current selection - we're going to blend between it and the stored pose clip self._preClip = theClip.Generate( objs ) #now setup a mapping between the selection and the nodes stored in the clip and set the mapping self._mappedClip = theClip.setMapping( mapping ) self._applyKwargs = self.getApplyKwargs() #open an undo chunk and close it when the slider finishes dragging... self._chunkOpened = cmd.undoInfo( openChunk=True )
def onMapping(self, *a): mapping = mappingUtils.matchNames(self.clipPreset.nodes(), cmd.ls(sl=True)) xferAnimUI.XferAnimWindow(mapping, self.clipPreset.clip())
def onSelectClipItems(self, *a): mappedNodes = mappingUtils.matchNames(self.clipPreset.nodes(), cmd.ls()) cmd.select(mappedNodes)
def onMapping( self, *a ): mapping = mappingUtils.matchNames( self.clipPreset.nodes(), cmd.ls( sl=True ) ) xferAnimUI.XferAnimWindow( mapping, self.clipPreset.clip() )
def onSelectClipItems( self, *a ): mappedNodes = mappingUtils.matchNames( self.clipPreset.nodes(), cmd.ls() ) cmd.select( mappedNodes )
def applyToNodes( self, nodes, **kw ): mapping = mappingUtils.matchNames( self.getNodes(), nodes ) self.setMapping( mapping ).apply( nodes, **kw )
def applyToNodes(self, nodes, **kw): mapping = mappingUtils.matchNames(self.getNodes(), nodes) self.setMapping(mapping).apply(nodes, **kw)