Example #1
0
    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)
Example #2
0
	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 )
Example #3
0
 def onMapping(self, *a):
     mapping = mappingUtils.matchNames(self.clipPreset.nodes(),
                                       cmd.ls(sl=True))
     xferAnimUI.XferAnimWindow(mapping, self.clipPreset.clip())
Example #4
0
 def onSelectClipItems(self, *a):
     mappedNodes = mappingUtils.matchNames(self.clipPreset.nodes(),
                                           cmd.ls())
     cmd.select(mappedNodes)
Example #5
0
	def onMapping( self, *a ):
		mapping = mappingUtils.matchNames( self.clipPreset.nodes(), cmd.ls( sl=True ) )
		xferAnimUI.XferAnimWindow( mapping, self.clipPreset.clip() )
Example #6
0
	def onSelectClipItems( self, *a ):
		mappedNodes = mappingUtils.matchNames( self.clipPreset.nodes(), cmd.ls() )
		cmd.select( mappedNodes )
Example #7
0
	def applyToNodes( self, nodes, **kw ):
		mapping = mappingUtils.matchNames( self.getNodes(), nodes )
		self.setMapping( mapping ).apply( nodes, **kw )
Example #8
0
 def applyToNodes(self, nodes, **kw):
     mapping = mappingUtils.matchNames(self.getNodes(), nodes)
     self.setMapping(mapping).apply(nodes, **kw)