Beispiel #1
0
    def setDefaultConfig(self):

        #STATIC PREFS
        # tumble config
        #cmds.tumbleCtx( 'tumbleContext', edit=True, alternateContext=True, tumbleScale=1.0, localTumble=0, autoOrthoConstrain=False, orthoLock=False)
        cmds.tumbleCtx('tumbleContext',
                       edit=True,
                       alternateContext=True,
                       tumbleScale=1.0,
                       localTumble=0)
        cmds.dollyCtx('dollyContext',
                      edit=True,
                      alternateContext=True,
                      scale=1.0,
                      localDolly=True,
                      centerOfInterestDolly=False)
        #timeline ticks display
        G.playBackSliderPython = G.playBackSliderPython or mel.eval(
            '$aTools_playBackSliderPython=$gPlayBackSlider')
        cmds.timeControl(G.playBackSliderPython,
                         edit=True,
                         showKeys="mainChannelBox",
                         showKeysCombined=True,
                         animLayerFilterOptions="active")
        #tickDrawSpecial Color
        cmds.displayRGBColor('timeSliderTickDrawSpecial', 1, 1, .4)

        #CUSTOMIZABLE PREFS
        for loopPref in PREFS:
            name = loopPref["name"]
            self.setPref(name, True)
Beispiel #2
0
 def setDefaultConfig(self):
     
     #STATIC PREFS
     # tumble config
     #cmds.tumbleCtx( 'tumbleContext', edit=True, alternateContext=True, tumbleScale=1.0, localTumble=0, autoOrthoConstrain=False, orthoLock=False)
     cmds.tumbleCtx( 'tumbleContext', edit=True, alternateContext=True, tumbleScale=1.0, localTumble=0)
     cmds.dollyCtx( 'dollyContext', edit=True, alternateContext=True, scale=1.0, localDolly=True, centerOfInterestDolly=False)
     #timeline ticks display
     G.playBackSliderPython  = G.playBackSliderPython or mel.eval('$aTools_playBackSliderPython=$gPlayBackSlider')
     cmds.timeControl(G.playBackSliderPython, edit=True, showKeys="mainChannelBox", showKeysCombined=True, animLayerFilterOptions="active") 
     #tickDrawSpecial Color
     cmds.displayRGBColor('timeSliderTickDrawSpecial',1,1,.4)
     
     
     
     #CUSTOMIZABLE PREFS
     for loopPref in PREFS:
         name    = loopPref["name"]
         self.setPref(name, True)
Beispiel #3
0
            "default":True
        },{ "name":"playbackAllViews",
            "command":"onOff = 'all' if onOff else 'active'; cmds.playbackOptions(view=onOff)",
            "default":True
        },{ "name":"displayAffected",
            "command":"cmds.displayAffected(onOff)",
            "default":False
        },{ "name":"undoQueue",
            "command":"if onOff: cmds.undoInfo( state=True, infinity=False, length=300)",
            "default":True
        },{ "name":"scrubbingUndo",
            "command":"commandsMod.scrubbingUndo(onOff)",
            "default":True
        },{ "name":"zoomTowardsCenter",
            "command":"cmds.dollyCtx('dollyContext', edit=True, dollyTowardsCenter=onOff)",
            "default":cmds.dollyCtx('dollyContext', query=True, dollyTowardsCenter=True)
        },{ "name":"cycleCheck",
            "command":"cmds.cycleCheck(evaluation=onOff)",
            "default":cmds.cycleCheck(query=True, evaluation=True)
        }]    





class GeneralTools_Gui(uiMod.BaseSubUI):
        
    def createLayout(self):     
       
        mainLayout = cmds.rowLayout(numberOfColumns=6, parent=self.parentLayout)
        
Beispiel #4
0
            "default":True
        },{ "name":"playbackAllViews",
            "command":"onOff = 'all' if onOff else 'active'; cmds.playbackOptions(view=onOff)",
            "default":True
        },{ "name":"displayAffected",
            "command":"cmds.displayAffected(onOff)",
            "default":False
        },{ "name":"undoQueue",
            "command":"if onOff: cmds.undoInfo( state=True, infinity=False, length=300)",
            "default":True
        },{ "name":"scrubbingUndo",
            "command":"commandsMod.scrubbingUndo(onOff)",
            "default":True
        },{ "name":"zoomTowardsCenter",
            "command":"cmds.dollyCtx('dollyContext', edit=True, dollyTowardsCenter=onOff)",
            "default":cmds.dollyCtx('dollyContext', query=True, dollyTowardsCenter=True)
        },{ "name":"cycleCheck",
            "command":"cmds.cycleCheck(evaluation=onOff)",
            "default":cmds.cycleCheck(query=True, evaluation=True)
        }]    





class GeneralTools_Gui(uiMod.BaseSubUI):
        
    def createLayout(self):     
       
        mainLayout = cmds.rowLayout(numberOfColumns=6, parent=self.parentLayout)