示例#1
0
    def setUiState(self):
        #Window
        self.widthHeight = mc.window('UVDeluxe', query=True, wh=True)
        self.collapseFrame0 = mc.frameLayout('layout_Settings',
                                             query=True,
                                             cl=0)
        self.collapseFrame1 = mc.frameLayout('layout_Mover', query=True, cl=0)
        self.collapseFrame2 = mc.frameLayout('layout_Scaler', query=True, cl=0)
        self.collapseFrame3 = mc.frameLayout('layout_Ratio', query=True, cl=0)
        self.collapseFrame4 = mc.frameLayout('layout_Straighten',
                                             query=True,
                                             cl=0)
        self.collapseFrame5 = mc.frameLayout('layout_Align', query=True, cl=0)
        self.collapseFrame6 = mc.frameLayout('layout_QuickSnap',
                                             query=True,
                                             cl=0)
        self.collapseFrame7 = mc.frameLayout('layout_MatchUV',
                                             query=True,
                                             cl=0)
        self.collapseFrame8 = mc.frameLayout('layout_SelectionSets',
                                             query=True,
                                             cl=0)

        self.detectTextureSize = mc.checkBox('DTR', query=True, v=True)

        self.retainCS = mc.texMoveContext('texMoveContext', q=True, scr=True)
        #Qucksnap
        self.snapPath = mc.textField("pathField", query=True, text=True)
        ''' Dump '''
        UiStates.pickleDump(self)
示例#2
0
	def setUiState(self):
		#Window
		self.widthHeight = mc.window('UVDeluxe',query=True,wh=True)
		self.collapseFrame0 = mc.frameLayout('layout_Settings',query=True,cl=True)
		self.collapseFrame1 = mc.frameLayout('layout_Mover',query=True,cl=True)
		self.collapseFrame2 = mc.frameLayout('layout_Scaler',query=True,cl=True)
		self.collapseFrame3 = mc.frameLayout('layout_Ratio',query=True,cl=True)
		self.collapseFrame4 = mc.frameLayout('layout_Straighten',query=True,cl=True)
		self.collapseFrame5 = mc.frameLayout('layout_Align',query=True,cl=True)
		self.collapseFrame6 = mc.frameLayout('layout_QuickSnap',query=True,cl=True)
		self.collapseFrame7 = mc.frameLayout('layout_MatchUV',query=True,cl=True)
		#self.collapseFrame8 = mc.frameLayout('layout_SelectionSets',query=True,cl=True)
		
		self.forgetTextureSize = mc.checkBox ('STR',q=True,value=True)
		self.matchDist = mc.floatField('MatchUVDistance',q=True,v=True)
		
		#Settings
		if mc.checkBox('STR',q=True,v=True) == False:
			print "box is false"
			self.textureSize = (mc.intSlider('textureSliderW',query=True,value=True),mc.intSlider('textureSliderH',query=True,value=True))
		else:
			print "box is true"
			self.textureSize = (5,5)
			
		self.retainCS = mc.texMoveContext('texMoveContext',q=True,scr=True)
		#Qucksnap
		self.snapPath = mc.textField("pathField",query=True,text=True)
		''' Dump '''
		UiStates.pickleDump(self)
示例#3
0
文件: uistates.py 项目: Bumpybox/Tapp
    def setUiState(self):
        #Window
        self.widthHeight    = mc.window('UVDeluxe',query=True,wh=True)
        self.collapseFrame0 = mc.frameLayout('layout_Settings',     query=True, cl=True)
        self.collapseFrame1 = mc.frameLayout('layout_Mover',        query=True, cl=True)
        self.collapseFrame2 = mc.frameLayout('layout_Scaler',       query=True, cl=True)
        self.collapseFrame3 = mc.frameLayout('layout_Ratio',        query=True, cl=True)
        self.collapseFrame4 = mc.frameLayout('layout_Straighten',   query=True, cl=True)
        self.collapseFrame5 = mc.frameLayout('layout_Align',        query=True, cl=True)
        self.collapseFrame6 = mc.frameLayout('layout_QuickSnap',    query=True, cl=True)
        self.collapseFrame7 = mc.frameLayout('layout_MatchUV',      query=True, cl=True)
        self.collapseFrame8 = mc.frameLayout('layout_SelectionSets',query=True, cl=True)

        self.detectTextureSize  = mc.checkBox   ('DTR',             query=True, v=True)

        self.retainCS = mc.texMoveContext('texMoveContext',q=True,scr=True)
        #Qucksnap
        self.snapPath = mc.textField("pathField",query=True,text=True)
        ''' Dump '''
        UiStates.pickleDump(self)
示例#4
0
	def __init__(self):
		self.version = version
		#Window
		self.widthHeight = (1150,700)
		self.collapseFrame0 = False
		self.collapseFrame1 = True
		self.collapseFrame2 = True
		self.collapseFrame3 = True
		self.collapseFrame4 = True
		self.collapseFrame5 = True
		self.collapseFrame6 = True
		self.collapseFrame7 = True
		#self.collapseFrame8 = True
		
		#Settings
		self.textureSize = (5,5)
		self.forgetTextureSize = False
		self.retainCS = mc.texMoveContext('texMoveContext',q=True,scr=True)
		self.matchDist = 0.05
		
		#Quicksnap
		self.snapPath = mc.workspace(q=True,rd=True)			
示例#5
0
文件: uistates.py 项目: Bumpybox/Tapp
    def __init__(self):
        self.version = version
        #Window
        self.widthHeight = (1150,700)
        self.collapseFrame0 = False
        self.collapseFrame1 = True
        self.collapseFrame2 = True
        self.collapseFrame3 = True
        self.collapseFrame4 = True
        self.collapseFrame5 = True
        self.collapseFrame6 = True
        self.collapseFrame7 = True
        self.collapseFrame8 = True

        #Settings
        #self.textureSize        = (5,5)
        #self.forgetTextureSize  = False
        self.detectTextureSize  = True
        self.retainCS  = mc.texMoveContext('texMoveContext',q=True,scr=True)
        self.matchDist = 0.05

        #Quicksnap
        self.snapPath = mc.workspace(q=True,rd=True)
示例#6
0
文件: uvdeluxe.py 项目: xbxcw/scripts
 def retainCompSpace():
     if mc.checkBox('SCR', q=True, value=True):
         mc.texMoveContext('texMoveContext', e=True, scr=True)
     else:
         mc.texMoveContext('texMoveContext', e=True, scr=False)
     uis.setUiState()