def core(self): cmds.rowColumnLayout( nc= 5, cw=[(1,self._emptyWidth), (2,self._widthList[0]), (3,self._widthList[1]), (4,self._widthList[2]), (5,self._emptyWidth) ] ) uifnc.setSpace() cmds.text( l='Driver Root : ', al='right' ) self._driverRoot = cmds.textField() cmds.button( l='Load', c = self.loadCmd ) uifnc.setSpace() cmds.setParent( '..' )
def core(self): cmds.rowColumnLayout(nc=5, cw=[(1, self._emptyWidth), (2, self._widthList[0]), (3, self._widthList[1]), (4, self._widthList[2]), (5, self._emptyWidth)]) uifnc.setSpace() cmds.text(l='Driver Root : ', al='right') self._driverRoot = cmds.textField() cmds.button(l='Load', c=self.loadCmd) uifnc.setSpace() cmds.setParent('..')
def core(self): mainLayout = cmds.rowColumnLayout( nc=3, cw=[(1, self._emptyWidth), (2,self._width), (3, self._emptyWidth)] ) uifnc.setSpace() self._editButton = cmds.button( l='Edit Mesh', h=30, c=self.editMeshCmd, bgc=[0.376,0.384,0.392] ) uifnc.setSpace() cmds.setParent( '..' ) uifnc.setSpace(5) column1 = cmds.rowColumnLayout( nc=3, cw=[(1, self._emptyWidth), (2,self._width), (3, self._emptyWidth)] ) uifnc.setSpace() self._scrollLay = cmds.scrollLayout( h=self._height ) cmds.popupMenu() cmds.menuItem( l='Refresh', c= self.updateCmd ) cmds.setParent( '..' ) uifnc.setSpace() cmds.setParent( '..' ) self._rowColumns = [column1] return mainLayout
def core(self): if cmds.window(self._winName, ex=1): cmds.deleteUI(self._winName) cmds.window(self._winName, title=self._title) cmds.columnLayout() uifnc.setSpace(10) part0_rootRoad.Add(self._width) uifnc.setSpace(20) part1_driverInfo.Add(self._width) uifnc.setSpace(25) part2_meshInfo.Add(self._width) uifnc.setSpace(25) part3_editMesh.Add(self._width) cmds.window(self._winName, e=1, wh=[self._width, self._height]) cmds.showWindow(self._winName)
def core(self): column1 = cmds.rowColumnLayout( nc= 3, cw=[(1,self._emptyWidth), (2,self._width), (3,self._emptyWidth)]) uifnc.setSpace() cmds.text( l='Driver LIST' ) uifnc.setSpace() cmds.setParent( '..' ) uifnc.setSpace( 5 ) column2 = cmds.rowColumnLayout( nc=4, cw=[(1,self._emptyWidth), (2,self._mainWidthList[0]), (3,self._mainWidthList[1]), (4,self._emptyWidth) ] ) uifnc.setSpace() column3 = cmds.rowColumnLayout( nc=1, cw=[(1,self._mainWidthList[0])]) self._driverListLay = cmds.scrollLayout( h=self._height-30 ) cmds.setParent( '..' ) uifnc.setSpace( 5 ) column4 = cmds.rowColumnLayout( nc= 4, cw=[(1,self._emptyWidth), (2,self._optionWidthList[0]), (3,self._optionWidthList[1]), (4,self._emptyWidth)] ) uifnc.setSpace() self._movedDriverCheck = cmds.checkBox( l='Show Only Moved Drivers', cc= self.updateCmd ) cmds.button( l='Refresh', c= self.updateCmd ) uifnc.setSpace() cmds.setParent( '..' ) cmds.setParent( '..' ) self._driverScrollList = cmds.textScrollList( h= self._height ) self._movedDriverInst = MovedDriverList( self._mainWidthList[0], self._driverScrollList ) uifnc.setSpace() cmds.setParent( '..' ) self._rowColumns = [ column1, column2, column3, column4 ]
def core(self): mainLayout = cmds.rowColumnLayout( nc= 3, cw=[(1,self._emptyWidth), (2,self._width), (3,self._emptyWidth)]) uifnc.setSpace() cmds.button( l='Set Selected Mesh To PSD Mesh', h=30, c= self.makePsdMeshCmd ) uifnc.setSpace() uifnc.setSpace() uifnc.setSpace(10) uifnc.setSpace() uifnc.setSpace() cmds.text( l='MESH LIST' ) uifnc.setSpace() cmds.setParent( '..' ) uifnc.setSpace( 5 ) column1 = cmds.rowColumnLayout( nc=4, cw=[(1,self._emptyWidth), (2,self._mainWidthList[0]), (3,self._mainWidthList[1]), (4,self._emptyWidth) ] ) uifnc.setSpace() self._meshList = cmds.textScrollList( h=self._height ) cmds.popupMenu() cmds.menuItem( l='Add Selected', c= self.addSelectedCmd ) cmds.textScrollList( self._meshList, e=1, sc= partial( self.scrollSelectObjectCmd ) ) self._selMeshList = cmds.textScrollList( h=self._height ) cmds.popupMenu() cmds.menuItem( l='Remove Selected', c= self.removeAllCmd ) cmds.textScrollList( self._selMeshList, e=1, sc= partial( self.scrollSelectObjectCmd ) ) uifnc.setSpace() cmds.setParent( '..' ) self._rowColumns = [mainLayout, column1] return mainLayout
def core(self): if cmds.window( self._winName, ex=1 ): cmds.deleteUI( self._winName ) cmds.window( self._winName, title= self._title ) cmds.columnLayout() uifnc.setSpace( 5 ) widthList = uifnc.setWidthByPerList( [5 ,25, 45, 20, 5], self._width ) cmds.rowColumnLayout( nc=5, cw=[(1,widthList[0]), (2,widthList[1]), (3,widthList[2]), (4,widthList[3]), (5,widthList[4])]) uifnc.setSpace() cmds.text( l='Target Root : ', al='right', w=widthList[1] ) self._rootField = cmds.textField( w=widthList[2] ) cmds.button( l='Load', w=widthList[3], c= self.loadCmd ) uifnc.setSpace() cmds.setParent( '..' ) uifnc.setSpace( 10 ) cmds.separator( width = self._width+2 ) uifnc.setSpace( 10 ) widthList = uifnc.setWidthByPerList( [ 5, 45, 3, 45, 5 ], self._width ) cmds.rowColumnLayout( nc=5, cw=[(1,widthList[0]), (2,widthList[1]), (3,widthList[2]), (4,widthList[3]), (5,widthList[4]) ] ) uifnc.setSpace() cmds.rowColumnLayout( nc=1, cw=(1,widthList[1]) ) cmds.text( l='Driver List', al='center' ) uifnc.setSpace(10) cmds.scrollLayout() self._driverList = cmds.textScrollList( w=widthList[1]-8, sc= self.selectDriverCmd, ams=1 ) cmds.setParent( '..' ) cmds.setParent( '..' ) uifnc.setSpace() cmds.rowColumnLayout( nc=1, cw=(1,widthList[3]-1) ) cmds.text( l='Driver Value' ) uifnc.setSpace( 30 ) cmds.frameLayout( cll=0, lv=0 ) uifnc.setSpace() driverWidthList = uifnc.setWidthByPerList( [ 50,50, 5 ], widthList[3]-2 ) self._angleFrame = cmds.rowColumnLayout( nc=3, cw=[(1,driverWidthList[0]), (2,driverWidthList[1]), (3,driverWidthList[2])], en=1 ) cmds.text( l='Angle1' ); self._angle1 = cmds.floatField( editable=False );uifnc.setSpace() cmds.text( l='Angle2' ); self._angle2 = cmds.floatField( editable=False );uifnc.setSpace() cmds.text( l='Angle3' ); self._angle3 = cmds.floatField( editable=False );uifnc.setSpace() cmds.setParent( '..' ) uifnc.setSpace() cmds.setParent( '..' ) driverWidthList = uifnc.setWidthByPerList( [ 5, 60,40, 5 ], widthList[3]-2 ) cmds.rowColumnLayout( nc=4, cw=[(1,driverWidthList[0]), (2,driverWidthList[1]), (3,driverWidthList[2]), (4,driverWidthList[3])]) uifnc.setSpace() cmds.text( l='Smaller Value : ' ) self._smallerValueField = cmds.floatField( v=0.01 ) uifnc.setSpace() cmds.setParent( '..' ) uifnc.setSpace( 20 ) self._showOnlyMovedCheck = cmds.checkBox( l='Show Only Moved Driver', cc= self.checkCmd ) uifnc.setSpace( 10 ) cmds.button( l='Update Condition', h=30, c=self.updateCondition ) cmds.setParent( '..' ) cmds.setParent( '..' ) cmds.rowColumnLayout() uifnc.setSpace( 10 ) cmds.separator( width = self._width+2 ) uifnc.setSpace( 10 ) cmds.setParent( '..' ) uifnc.setSpace() cmds.setParent( '..' ) driverWidthList = uifnc.setWidthByPerList( [ 5,90,5 ], self._width ) cmds.rowColumnLayout( nc=3, cw=[(1,driverWidthList[0]), (2,driverWidthList[1]), (3,driverWidthList[2])] ) uifnc.setSpace() cmds.button( l='Set Driver', h=30, c= self.setDriverCmd ) uifnc.setSpace() uifnc.setSpace() cmds.button( l='Make PSD Skin', h=30, c= self.makePSDSkinCmd ) uifnc.setSpace() cmds.setParent( '..' ) cmds.window( self._winName, e=1, width = self._width+2, height = self._height ) cmds.showWindow( self._winName ) self.setScriptJob()
def core(self): if cmds.window(self._winName, ex=1): cmds.deleteUI(self._winName) cmds.window(self._winName, title=self._title) cmds.columnLayout() uifnc.setSpace(5) widthList = uifnc.setWidthByPerList([5, 25, 45, 20, 5], self._width) cmds.rowColumnLayout(nc=5, cw=[(1, widthList[0]), (2, widthList[1]), (3, widthList[2]), (4, widthList[3]), (5, widthList[4])]) uifnc.setSpace() cmds.text(l='Target Root : ', al='right', w=widthList[1]) self._rootField = cmds.textField(w=widthList[2]) cmds.button(l='Load', w=widthList[3], c=self.loadCmd) uifnc.setSpace() cmds.setParent('..') uifnc.setSpace(10) cmds.separator(width=self._width + 2) uifnc.setSpace(10) widthList = uifnc.setWidthByPerList([5, 45, 3, 45, 5], self._width) cmds.rowColumnLayout(nc=5, cw=[(1, widthList[0]), (2, widthList[1]), (3, widthList[2]), (4, widthList[3]), (5, widthList[4])]) uifnc.setSpace() cmds.rowColumnLayout(nc=1, cw=(1, widthList[1])) cmds.text(l='Driver List', al='center') uifnc.setSpace(10) cmds.scrollLayout() self._driverList = cmds.textScrollList(w=widthList[1] - 8, sc=self.selectDriverCmd, ams=1) cmds.setParent('..') cmds.setParent('..') uifnc.setSpace() cmds.rowColumnLayout(nc=1, cw=(1, widthList[3] - 1)) cmds.text(l='Driver Value') uifnc.setSpace(30) cmds.frameLayout(cll=0, lv=0) uifnc.setSpace() driverWidthList = uifnc.setWidthByPerList([50, 50, 5], widthList[3] - 2) self._angleFrame = cmds.rowColumnLayout(nc=3, cw=[(1, driverWidthList[0]), (2, driverWidthList[1]), (3, driverWidthList[2])], en=1) cmds.text(l='Angle1') self._angle1 = cmds.floatField(editable=False) uifnc.setSpace() cmds.text(l='Angle2') self._angle2 = cmds.floatField(editable=False) uifnc.setSpace() cmds.text(l='Angle3') self._angle3 = cmds.floatField(editable=False) uifnc.setSpace() cmds.setParent('..') uifnc.setSpace() cmds.setParent('..') driverWidthList = uifnc.setWidthByPerList([5, 60, 40, 5], widthList[3] - 2) cmds.rowColumnLayout(nc=4, cw=[(1, driverWidthList[0]), (2, driverWidthList[1]), (3, driverWidthList[2]), (4, driverWidthList[3])]) uifnc.setSpace() cmds.text(l='Smaller Value : ') self._smallerValueField = cmds.floatField(v=0.01) uifnc.setSpace() cmds.setParent('..') uifnc.setSpace(20) self._showOnlyMovedCheck = cmds.checkBox(l='Show Only Moved Driver', cc=self.checkCmd) uifnc.setSpace(10) cmds.button(l='Update Condition', h=30, c=self.updateCondition) cmds.setParent('..') cmds.setParent('..') cmds.rowColumnLayout() uifnc.setSpace(10) cmds.separator(width=self._width + 2) uifnc.setSpace(10) cmds.setParent('..') uifnc.setSpace() cmds.setParent('..') driverWidthList = uifnc.setWidthByPerList([5, 90, 5], self._width) cmds.rowColumnLayout(nc=3, cw=[(1, driverWidthList[0]), (2, driverWidthList[1]), (3, driverWidthList[2])]) uifnc.setSpace() cmds.button(l='Set Driver', h=30, c=self.setDriverCmd) uifnc.setSpace() uifnc.setSpace() cmds.button(l='Make PSD Skin', h=30, c=self.makePSDSkinCmd) uifnc.setSpace() cmds.setParent('..') cmds.window(self._winName, e=1, width=self._width + 2, height=self._height) cmds.showWindow(self._winName) self.setScriptJob()
def core(self): mainLayout = cmds.rowColumnLayout(nc=3, cw=[(1, self._emptyWidth), (2, self._width), (3, self._emptyWidth)]) uifnc.setSpace() cmds.button(l='Set Selected Mesh To PSD Mesh', h=30, c=self.makePsdMeshCmd) uifnc.setSpace() uifnc.setSpace() uifnc.setSpace(10) uifnc.setSpace() uifnc.setSpace() cmds.text(l='MESH LIST') uifnc.setSpace() cmds.setParent('..') uifnc.setSpace(5) column1 = cmds.rowColumnLayout(nc=4, cw=[(1, self._emptyWidth), (2, self._mainWidthList[0]), (3, self._mainWidthList[1]), (4, self._emptyWidth)]) uifnc.setSpace() self._meshList = cmds.textScrollList(h=self._height) cmds.popupMenu() cmds.menuItem(l='Add Selected', c=self.addSelectedCmd) cmds.textScrollList(self._meshList, e=1, sc=partial(self.scrollSelectObjectCmd)) self._selMeshList = cmds.textScrollList(h=self._height) cmds.popupMenu() cmds.menuItem(l='Remove Selected', c=self.removeAllCmd) cmds.textScrollList(self._selMeshList, e=1, sc=partial(self.scrollSelectObjectCmd)) uifnc.setSpace() cmds.setParent('..') self._rowColumns = [mainLayout, column1] return mainLayout