Beispiel #1
0
    def start(self):
        mod = uiMod.getModKeyPressed()

        if mod == "shift":
            self.selectMirrorObjs(True)
        elif mod == "ctrl":
            self.selectMirrorObjs(False)
        else:
            sel = cmds.ls(selection=True)
            if sel: self.applyMirror()
            else: self.toggleAutoSelectMirrorObjects()
Beispiel #2
0
 def start(self):
     mod = uiMod.getModKeyPressed()
         
     if mod == "shift":
         self.selectMirrorObjs(True) 
     elif mod == "ctrl":
         self.selectMirrorObjs(False)
     else:
         sel = cmds.ls(selection=True)
         if sel: self.applyMirror()
         else:   self.toggleAutoSelectMirrorObjects()
Beispiel #3
0
 def click(self):
     
     mod = uiMod.getModKeyPressed()
         
     if mod == "shift":
         if not self.onOff: self.setMode(True)
         self.addSelection() 
     elif mod == "ctrl":
         if not self.onOff: self.setMode(True)
         self.removeSelection()
     else:
         self.switch()
Beispiel #4
0
    def click(self):

        mod = uiMod.getModKeyPressed()

        if mod == "shift":
            if not self.onOff: self.setMode(True)
            self.addSelection()
        elif mod == "ctrl":
            if not self.onOff: self.setMode(True)
            self.removeSelection()
        else:
            self.switch()
Beispiel #5
0
 def switch(self):
     
     mod         = uiMod.getModKeyPressed()
         
     if mod == "ctrl":
         self.setBlendRangeMode(not self.blendRangeMode)
         if self.onOff: self.onOff = False
             
     
     self.onOff  = (not self.onOff)
     self.setButtonImg(self.onOff) 
     self.blinkingButton(self.onOff)  
           
     self.setMode(self.onOff)
Beispiel #6
0
    def switch(self):

        mod = uiMod.getModKeyPressed()

        if mod == "ctrl":
            self.setBlendRangeMode(not self.blendRangeMode)
            if self.onOff:
                self.onOff = False

        self.onOff = not self.onOff
        self.setButtonImg(self.onOff)
        self.blinkingButton(self.onOff)

        self.setMode(self.onOff)
Beispiel #7
0
    def selectSet(self, selSet):

        mod = uiMod.getModKeyPressed()

        if not cmds.objExists(selSet):
            self.rebuildAllSelectSets([selSet])
            if mod == "ctrlShift": self.deleteSets([selSet])
            return

        if mod == "shift":
            cmds.select(selSet, add=True)
        elif mod == "ctrl":
            cmds.select(selSet, deselect=True)
        elif mod == "ctrlShift":
            self.deleteSets([selSet])
        else:
            cmds.select(selSet, replace=True)

        function = lambda *args: self.checkIfElementsDeleted(selSet)
        G.deferredManager.sendToQueue(function, 1, "SS")
Beispiel #8
0
    def selectSet(self, selSet):  
         
        mod = uiMod.getModKeyPressed()
        
        if not cmds.objExists(selSet): 
            self.rebuildAllSelectSets([selSet])
            if mod == "ctrlShift": self.deleteSets([selSet])
            return
        
        if mod == "shift":
            cmds.select(selSet, add=True) 
        elif mod == "ctrl":
            cmds.select(selSet, deselect=True) 
        elif mod == "ctrlShift":
            self.deleteSets([selSet])
        else:
            cmds.select(selSet, replace=True)
        

        function = lambda *args: self.checkIfElementsDeleted(selSet)
        G.deferredManager.sendToQueue(function, 1, "SS")