Exemplo n.º 1
0
 def OnMouse2Down( self ):
     Base.OnMouse2Down( self )
     
     axis = self.GetSelectedAxis()
     if ( hasattr( self, 'collEntry' ) and hasattr( self, 'initCollEntry' ) and 
          self.collEntry.getIntoNode() != self.initCollEntry.getIntoNode() ):
         self.startVec = self.getRelativeVector( self.rootNp, self.GetAxisPoint( self.foobar ) - self.getPos() )
     else:
         self.startVec = self.getRelativeVector( self.rootNp, self.startAxisPoint - self.getPos() )
Exemplo n.º 2
0
 def OnMouse2Down( self ):
     Base.OnMouse2Down( self )
     
     self._s = pm.Vec3( 0 )