def core(self): if cmds.window(self._winName, ex=1): cmds.deleteUI(self._winName, wnd=1) cmds.window(self._winName, title=self._title, menuBar=True) menu.File(self) menu.About(self) cmds.columnLayout() uiInfo.separator(self._width, 10) self._baseSetting = baseSetting.Add(self) uiInfo.setSpace(14) uiInfo.separator(self._width, 1) uiInfo.setSpace(5) self._mainButton = mainButton.Add(self) uiInfo.setSpace(8) self._rebuild = rebuild.Add(self, self._baseSetting) self._simulation = nHair.Add(self, self._baseSetting) self._volumeHair = volume.Add(self, self._baseSetting) self._cutting = cutting.Add(self, self._baseSetting) self._convert = convert.Add(self, self._baseSetting) self._grooming = grooming.Add(self, self._baseSetting) self._guide = guide.Add(self, self._baseSetting) self._bake = bake.Add(self, self._baseSetting) cmds.window(self._winName, e=1, w=self._width, h=self._height) cmds.showWindow(self._winName) self._height = cmds.window(self._winName, q=1, h=1)
def core(self): if cmds.window( self._winName , ex=1 ): cmds.deleteUI( self._winName, wnd=1 ) cmds.window( self._winName, title = self._title, menuBar=True ) menu.File( self ) menu.About( self ) cmds.columnLayout() uiInfo.separator( self._width, 10 ) self._baseSetting = baseSetting.Add( self ) uiInfo.setSpace(14) uiInfo.separator( self._width, 1 ) uiInfo.setSpace(5) self._mainButton = mainButton.Add( self ) uiInfo.setSpace(8) self._rebuild = rebuild.Add( self, self._baseSetting ) self._simulation = nHair.Add( self, self._baseSetting ) self._volumeHair = volume.Add( self, self._baseSetting ) self._cutting = cutting.Add( self, self._baseSetting ) self._convert = convert.Add( self, self._baseSetting ) self._grooming = grooming.Add( self, self._baseSetting ) self._guide = guide.Add( self, self._baseSetting ) self._bake = bake.Add( self, self._baseSetting ) cmds.window( self._winName, e=1, w= self._width, h=self._height ) cmds.showWindow( self._winName ) self._height = cmds.window( self._winName, q=1, h=1 )
def core(self): uiInfo.addFrameLayout( self._uiName, self._label ) uiInfo.setSpace( 10 ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() uiInfo.setButton( partial( self.setCmd, self._winPointer, self._basePointer ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 10 ) uiInfo.getOutFrameLayout()
def core(self): uiInfo.addFrameLayout(self._uiName, self._label) uiInfo.setSpace(10) cmds.rowColumnLayout(nc=3, cw=[(1, 10), (2, self._width - 20), (3, 10)]) uiInfo.setSpace() uiInfo.setButton( partial(self.setCmd, self._winPointer, self._basePointer)) uiInfo.setSpace() cmds.setParent('..') uiInfo.setSpace(10) uiInfo.getOutFrameLayout()
def core(self): uiInfo.addFrameLayout( self._uiName, self._label ) uiInfo.setSpace( 10 ) iconArea = 25 fieldArea = ( self._width ) * .5 textArea = self._width - fieldArea - iconArea -10 cmds.rowColumnLayout( nc=3, cw=[(1,textArea),(2,fieldArea),(3,iconArea)] ) cmds.text( l='Cache File Name : ', al='right' ) self._filePath = cmds.textField( h=22, tx= self._defaultPath ) cmds.iconTextButton( image=uiModel.iconPath+"/folder.png", c=partial( self.loadFilePathCmd ) ) cmds.setParent( '..' ) iconArea = 25 fieldArea = ( self._width ) * .5 textArea = self._width - fieldArea - iconArea -10 eachFieldArea = fieldArea/3-2 cmds.rowColumnLayout( nc=3, cw=[(1,textArea),(2,fieldArea),(3,iconArea)] ) cmds.text( l='Frame Range / Samples : ', al='right') self._timeAndSample = cmds.floatFieldGrp( nf=3, v=[self._value1,self._value2,self._value3,0], cw3 = [eachFieldArea,eachFieldArea,eachFieldArea], cc=self.saveData ) cmds.setParent( '..' ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() cmds.button( l="Bake", c=partial( self.createCacheCmd, self._basePointer ), h=25 ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 10 ) cmds.setParent( '..' ) uiInfo.getOutFrameLayout()
def core(self): uiInfo.addFrameLayout( self._uiName, self._label ) uiInfo.setSpace( 10 ) uiInfo.floatSliderColumn( self._width ) cmds.text( l="Outer Curve : ", al='right' ) self._byNumSpans = cmds.checkBox( l='By Num Spans', cc= self.byNumSpansCmd ) uiInfo.setSpace() self._outerNumCurve = uiInfo.intSlider( 0, 5, 30, self._densityDefault ) cmds.text( l="Offset Rand Rate : ", al='right' ) self._outerOffsetRand = uiInfo.floatSlider( 0, 1, 1, 0.1 ) cmds.text( l="Param Rand Rate : ", al='right' ) self._outerParamRand = uiInfo.floatSlider( 0, 1, 1, 0.1 ) cmds.setParent( '..' ) uiInfo.floatSliderColumn( self._width ) cmds.text( l="Inner Curve : ", al='right' ) self._numCurve = uiInfo.intSlider( 0, 5, 30, self._densityDefault ) cmds.text( l="Offset Rand Rate : ", al='right' ) self._innerOffsetRand = uiInfo.floatSlider( 0, 1, 1, 0.1 ) cmds.text( l="Param Rand Rate : ", al='right' ) self._innerParamRand = uiInfo.floatSlider( 0, 1, 1, 0.1 ) cmds.setParent( '..' ) uiInfo.setSpace( 5 ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() uiInfo.setButton( partial( self.setCmd, self._winPointer, self._basePointer ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.separator( self._width, 2 ) halfWidth = ( self._width - 20) /2 elseWidth = ( self._width - 20) - halfWidth cmds.rowColumnLayout( nc=4, cw=[(1,10),(2,halfWidth),(3,elseWidth),(4,10)]) uiInfo.setSpace() cmds.button( l='Select In Curve', h=25, c = partial( self.selectCurveCmd, self._winPointer, self._basePointer, ['isInCurveNode'] ) ) cmds.button( l='Select Out Curve', h=25, c = partial( self.selectCurveCmd, self._winPointer, self._basePointer, ['isOutCurveNode'] ) ) uiInfo.setSpace() cmds.setParent( '..' ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() cmds.button( l='Select All Curve', h=30, c = partial( self.selectCurveCmd, self._winPointer, self._basePointer, ['isInCurveNode', 'isOutCurveNode'] ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.floatSliderColumn( self._width ) cmds.text( l="Offset Curve : ", al='right' ) self._offsetCurve = uiInfo.floatSlider( 0, 2, 2, 1 ) cmds.floatSliderGrp( self._offsetCurve, e=1, dc= self.offsetCurveDragCmd, cc=self.offsetCurveChangeCmd ) cmds.setParent( '..' ) uiInfo.setSpace( 5 ) uiInfo.getOutFrameLayout()
def core(self): uiInfo.addFrameLayout( self._uiName, self._label ) uiInfo.setSpace( 10 ) textScrollArea = (self._width-20) / 2 textScrollArea2 = self._width-20-textScrollArea cmds.rowColumnLayout( nc=4, cw=[(1,10), (2,textScrollArea),(3,textScrollArea2),(4,10)] ) uiInfo.setSpace() self._set = cmds.textScrollList( h=100, ams=1, sc = partial( self.selectOnSetCmd ) ) self._guideSet = cmds.textScrollList( h=100, ams=1, sc = partial( self.selectOnGuideSetCmd ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 5 ) checkWidth = 25 textWidth = (self._width-checkWidth-20)*.45 - 5 sliderWidth = (self._width-checkWidth-20) - textWidth - checkWidth*2 + 5 cmds.rowColumnLayout( nc=7, cw=[(1,10),(2,textWidth),(3,checkWidth),(4,checkWidth),(5,checkWidth),(6,sliderWidth),(7,10)]) uiInfo.setSpace() cmds.frameLayout( lv=0, bs='out', h=20 ) cmds.text( l='ATTRIBUTE' ) cmds.setParent( '..' ) cmds.button( 'A', c=self.allCheckBoxOnCmd, bgc=[.8,.39,.41] ) cmds.button( 'C', c=self.allCheckBoxOffCmd, bgc=[.47,.72,.21] ) cmds.button( 'R', c=self.reverseCheckBoxCmd, bgc=[.09,.41,.51] ) cmds.frameLayout( lv=0, bs='out' ) cmds.text( l='VALUE' ) cmds.setParent( '..' ) uiInfo.setSpace() cmds.setParent( '..' ) cmds.rowColumnLayout( nc=5, cw=[(1,10),(2,textWidth),(3,20),(4,sliderWidth+checkWidth+20),(5,10)]) for i in self._sliderDefineList: uiInfo.setSpace() cuSlider = self.sliderSet( i[0], i[1], i[2], i[3], [(1,50),(2,150)] ) cmds.floatSliderGrp( cuSlider[1], e=1, step=0.01, fmx=100, cc=self.saveData ) uiInfo.setSpace() self._sliders.append( cuSlider ) cmds.setParent( '..' ) uiInfo.setSpace( 10 ) cmds.rowColumnLayout( nc=4, cw=[(1,10),(2,30),(3,self._width-20-30),(4,10)]) uiInfo.setSpace() cmds.iconTextButton( image= uiModel.iconPath +'/spoid.png', c= partial( self.getCmd ) ) uiInfo.setButton( partial( self.setCmd ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 10 ) uiInfo.getOutFrameLayout()
def core(self): uiInfo.addFrameLayout( self._uiName, self._label ) uiInfo.setSpace( 10 ) firstWidth = (self._width - 40)*.33 secondWdith = (self._width - 40)*.33 thirdWidth = (self._width - 40) - firstWidth - secondWdith cmds.rowColumnLayout( nc=5, cw=[(1,20), (2,firstWidth), (3,secondWdith), (4,thirdWidth), (5,20)] ) uiInfo.setSpace() self._addControler = cmds.checkBox( l='Add Controler', v=0, cc=self.checkAddControler ) cmds.button( l='Select Up Object', c=partial( self.selectUpCtlCmd, self._winPointer, self._basePointer ) ) cmds.button( l='Show DCTL', c=partial( self.showDCtl, self._winPointer, self._basePointer ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 5 ) uiInfo.floatSliderColumn( self._width ) cmds.text( l='Num Of Controler : ', al='right' ) self._controlerNum = uiInfo.intSlider( 2, 10, 20, self._defaultValue ) cmds.intSliderGrp( self._controlerNum, e=1, en=0 ) cmds.setParent( '..' ) uiInfo.setSpace( 10 ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() uiInfo.setButton( partial( self.addControlerToCurveCmd, self._winPointer, self._basePointer ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 10 ) uiInfo.getOutFrameLayout()
def core(self): uiInfo.addFrameLayout( self._uiName, self._label ) uiInfo.setSpace( 10 ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() cmds.button( l='Check Direction', c=partial( self.checkCmd, self._winPointer, self._basePointer ), h=30 ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 10 ) cmds.rowColumnLayout( nc=2, cw=[(1,50)]) cmds.text( l='' ) self._keepOriginal = cmds.checkBox( l='Keep Original', cc= self.keepOriginalCheck ) cmds.setParent( '..' ) uiInfo.floatSliderColumn( self._width ) cmds.text( l='Rebuild Rate : ', al='right' ) self._rebuildRate = uiInfo.floatSlider( 0.1, 2, 100, self._defaultValue, self.saveData ) cmds.setParent( '..' ) uiInfo.setSpace( 10 ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() uiInfo.setButton( partial( self.setCmd, self._winPointer, self._basePointer ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 10 ) uiInfo.getOutFrameLayout()
def core(self): uiInfo.addFrameLayout(self._uiName, self._label) uiInfo.setSpace(4) cmds.rowColumnLayout(nc=3, cw=[(1, 10), (2, self._width - 20), (3, 10)]) uiInfo.setSpace() cmds.button("Create Yeti", h=25, c=partial(self.createYetiCmd, self._basePointer)) uiInfo.setSpace() cmds.setParent('..') uiInfo.separator(self._width, 1) textScrollArea = (self._width - 20) / 2 textScrollArea2 = self._width - 20 - textScrollArea cmds.rowColumnLayout(nc=4, cw=[(1, 10), (2, textScrollArea), (3, textScrollArea2), (4, 10)]) uiInfo.setSpace() cmds.text(l='Set', h=25) cmds.text(l='Guide Set', h=25) uiInfo.setSpace() uiInfo.setSpace() self._set = cmds.textScrollList(h=100, ams=1, sc=partial(self.selectOnSetCmd)) self._guideSet = cmds.textScrollList(h=100, ams=1, sc=partial( self.selectOnGuideSetCmd)) uiInfo.setSpace() uiInfo.setSpace() cmds.button(l='Move to >>', c=partial(self.moveToRCmd, self._basePointer)) cmds.button(l='<< Move to', c=partial(self.moveToLCmd, self._basePointer)) uiInfo.setSpace() cmds.setParent('..') cmds.rowColumnLayout(nc=3, cw=[(1, 10), (2, self._width - 20), (3, 10)]) uiInfo.setSpace() cmds.button(l='Add', h=25, c=partial(self.addCmd, self._winPointer, self._basePointer)) uiInfo.setSpace() uiInfo.setSpace() cmds.button(l='Reset', h=25, c=partial(self.resetCmd, self._winPointer, self._basePointer)) uiInfo.setSpace() uiInfo.setSpace() cmds.button(l='Remove', h=25, c=partial(self.removeCmd)) uiInfo.setSpace() cmds.setParent('..') uiInfo.separator(self._width) iconArea = 25 fieldArea = (self._width) * .5 textArea = self._width - fieldArea - iconArea - 10 cmds.rowColumnLayout(nc=3, cw=[(1, textArea), (2, fieldArea), (3, iconArea)]) cmds.text(l='Groom File Name : ') self._filePath = cmds.textField(h=22, tx=self._defaultFilePath) cmds.iconTextButton(image=uiModel.iconPath + "/folder.png", c=partial(self.loadFilePathCmd)) cmds.setParent('..') cmds.rowColumnLayout(nc=3, cw=[(1, 10), (2, self._width - 20), (3, 10)]) uiInfo.setSpace() cmds.button("Import Groom", h=25, c=partial(self.importGroomCmd, self._basePointer)) uiInfo.setSpace() uiInfo.setSpace() cmds.button("Open Graph Editor", h=25, c=partial(self.openGraphEditorCmd, self._basePointer)) uiInfo.setSpace() cmds.setParent('..') uiInfo.setSpace(10) uiInfo.getOutFrameLayout()
def core(self): if cmds.window(self._winName, ex=1): cmds.deleteUI(self._winName, wnd=1) cmds.window(self._winName, title=self._title) cmds.columnLayout() cmds.rowColumnLayout(nc=2, cw=[(1, 150), (2, 150)]) cmds.text(l='Set Name : ') self._setName = cmds.textField() cmds.setParent('..') uiInfo.setSpace(5) cmds.rowColumnLayout(nc=2, cw=[(1, 100), (2, 150)]) uiInfo.setSpace() self._eachSurface = cmds.checkBox(l='Set by Each Surface') cmds.setParent('..') uiInfo.setSpace(5) cmds.rowColumnLayout(nc=3, cw=[(1, 10), (2, self._width - 20), (3, 10)]) uiInfo.setSpace() cmds.button(l='SET', c=self.setCmd, h=25) uiInfo.setSpace() cmds.setParent('..') uiInfo.setSpace(5) cmds.window(self._winName, e=1, w=self._width, h=self._height) cmds.showWindow(self._winName)
def core(self): uiInfo.addFrameLayout(self._uiName, self._label) uiInfo.setSpace(10) uiInfo.floatSliderColumn(self._width) cmds.text(l="Outer Curve : ", al='right') self._byNumSpans = cmds.checkBox(l='By Num Spans', cc=self.byNumSpansCmd) uiInfo.setSpace() self._outerNumCurve = uiInfo.intSlider(0, 5, 30, self._densityDefault) cmds.text(l="Offset Rand Rate : ", al='right') self._outerOffsetRand = uiInfo.floatSlider(0, 1, 1, 0.1) cmds.text(l="Param Rand Rate : ", al='right') self._outerParamRand = uiInfo.floatSlider(0, 1, 1, 0.1) cmds.setParent('..') uiInfo.floatSliderColumn(self._width) cmds.text(l="Inner Curve : ", al='right') self._numCurve = uiInfo.intSlider(0, 5, 30, self._densityDefault) cmds.text(l="Offset Rand Rate : ", al='right') self._innerOffsetRand = uiInfo.floatSlider(0, 1, 1, 0.1) cmds.text(l="Param Rand Rate : ", al='right') self._innerParamRand = uiInfo.floatSlider(0, 1, 1, 0.1) cmds.setParent('..') uiInfo.setSpace(5) cmds.rowColumnLayout(nc=3, cw=[(1, 10), (2, self._width - 20), (3, 10)]) uiInfo.setSpace() uiInfo.setButton( partial(self.setCmd, self._winPointer, self._basePointer)) uiInfo.setSpace() cmds.setParent('..') uiInfo.separator(self._width, 2) halfWidth = (self._width - 20) / 2 elseWidth = (self._width - 20) - halfWidth cmds.rowColumnLayout(nc=4, cw=[(1, 10), (2, halfWidth), (3, elseWidth), (4, 10)]) uiInfo.setSpace() cmds.button(l='Select In Curve', h=25, c=partial(self.selectCurveCmd, self._winPointer, self._basePointer, ['isInCurveNode'])) cmds.button(l='Select Out Curve', h=25, c=partial(self.selectCurveCmd, self._winPointer, self._basePointer, ['isOutCurveNode'])) uiInfo.setSpace() cmds.setParent('..') cmds.rowColumnLayout(nc=3, cw=[(1, 10), (2, self._width - 20), (3, 10)]) uiInfo.setSpace() cmds.button(l='Select All Curve', h=30, c=partial(self.selectCurveCmd, self._winPointer, self._basePointer, ['isInCurveNode', 'isOutCurveNode'])) uiInfo.setSpace() cmds.setParent('..') uiInfo.floatSliderColumn(self._width) cmds.text(l="Offset Curve : ", al='right') self._offsetCurve = uiInfo.floatSlider(0, 2, 2, 1) cmds.floatSliderGrp(self._offsetCurve, e=1, dc=self.offsetCurveDragCmd, cc=self.offsetCurveChangeCmd) cmds.setParent('..') uiInfo.setSpace(5) uiInfo.getOutFrameLayout()
def core(self): cmds.rowColumnLayout( self._uiName, nc=1, cw=(1,self._winPointer._width) ) cmds.rowColumnLayout( nc=9, cw=[(1,10),(2,94),(3,1),(4,94),(5,1),(6,94),(7,1),(8,94),(9,10)] ) uiInfo.setSpace() cmds.iconTextButton( l="", h=94, image= uiModel.iconPath+"/94/rebulid.png", c= partial( self.modeChange, self._winPointer, 0 ) ) uiInfo.setSpace() cmds.iconTextButton( l="", h=94,image= uiModel.iconPath+"/94/nhair.png", c= partial( self.modeChange, self._winPointer, 1 ) ) uiInfo.setSpace() cmds.iconTextButton( l="", h=94,image= uiModel.iconPath+"/94/volume.png", c= partial( self.modeChange, self._winPointer, 2 ) ) uiInfo.setSpace() cmds.iconTextButton( l="", h=94,image= uiModel.iconPath+"/94/cutting.png", c= partial( self.modeChange, self._winPointer, 3 ) ) uiInfo.setSpace() cmds.setParent( '..' ) cmds.rowColumnLayout( nc=9, cw=[(1,10),(2,94),(3,1),(4,94),(5,1),(6,94),(7,1),(8,94),(9,10)] ) uiInfo.setSpace() cmds.iconTextButton( l="", h=94, image= uiModel.iconPath+"/94/convert_gray.png", c= partial( self.modeChange, self._winPointer, 4 ) ) uiInfo.setSpace() cmds.iconTextButton( l="", h=94,image= uiModel.iconPath+"/94/grooming.png", c= partial( self.modeChange, self._winPointer, 5 ) ) uiInfo.setSpace() cmds.iconTextButton( l="", h=94,image= uiModel.iconPath+"/94/guide.png", c= partial( self.modeChange, self._winPointer, 6 ) ) uiInfo.setSpace() cmds.iconTextButton( l="", h=94,image= uiModel.iconPath+"/94/bake.png", c= partial( self.modeChange, self._winPointer, 7 ) ) uiInfo.setSpace() cmds.setParent( '..' ) cmds.setParent( '..' )
def core(self): uiInfo.addFrameLayout( self._uiName, self._label ) uiInfo.setSpace( 4 ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() cmds.button( "Create Yeti", h=25, c=partial( self.createYetiCmd, self._basePointer) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.separator( self._width, 1 ) textScrollArea = (self._width-20) / 2 textScrollArea2 = self._width-20-textScrollArea cmds.rowColumnLayout( nc=4, cw=[(1,10), (2,textScrollArea),(3,textScrollArea2),(4,10)] ) uiInfo.setSpace() cmds.text( l='Set', h=25 ) cmds.text( l='Guide Set', h=25 ) uiInfo.setSpace() uiInfo.setSpace() self._set = cmds.textScrollList( h=100, ams=1, sc = partial( self.selectOnSetCmd) ) self._guideSet = cmds.textScrollList( h=100, ams=1, sc = partial( self.selectOnGuideSetCmd) ) uiInfo.setSpace() uiInfo.setSpace() cmds.button( l='Move to >>', c=partial( self.moveToRCmd, self._basePointer) ) cmds.button( l='<< Move to', c=partial( self.moveToLCmd, self._basePointer) ) uiInfo.setSpace() cmds.setParent( '..' ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() cmds.button( l='Add', h=25, c=partial( self.addCmd, self._winPointer, self._basePointer) ) uiInfo.setSpace() uiInfo.setSpace() cmds.button( l='Reset', h=25, c=partial( self.resetCmd, self._winPointer, self._basePointer) ) uiInfo.setSpace() uiInfo.setSpace() cmds.button( l='Remove', h=25, c=partial( self.removeCmd) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.separator( self._width ) iconArea = 25 fieldArea = ( self._width ) * .5 textArea = self._width - fieldArea - iconArea -10 cmds.rowColumnLayout( nc=3, cw=[(1,textArea),(2,fieldArea),(3,iconArea)] ) cmds.text( l='Groom File Name : ' ) self._filePath = cmds.textField( h=22, tx=self._defaultFilePath ) cmds.iconTextButton( image=uiModel.iconPath+"/folder.png", c=partial( self.loadFilePathCmd) ) cmds.setParent( '..' ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20),(3,10)]) uiInfo.setSpace() cmds.button( "Import Groom", h=25, c=partial( self.importGroomCmd, self._basePointer) ) uiInfo.setSpace() uiInfo.setSpace() cmds.button( "Open Graph Editor", h=25, c= partial( self.openGraphEditorCmd, self._basePointer ) ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 10 ) uiInfo.getOutFrameLayout()
def core(self): if cmds.window( self._winName, ex=1 ): cmds.deleteUI( self._winName, wnd=1 ) cmds.window( self._winName, title=self._title ) cmds.columnLayout() cmds.rowColumnLayout( nc=2, cw=[(1,150),(2,150)]) cmds.text( l='Set Name : ' ) self._setName = cmds.textField() cmds.setParent( '..' ) uiInfo.setSpace( 5 ) cmds.rowColumnLayout( nc=2, cw=[(1,100),(2,150)]) uiInfo.setSpace() self._eachSurface = cmds.checkBox( l='Set by Each Surface' ) cmds.setParent( '..' ) uiInfo.setSpace( 5 ) cmds.rowColumnLayout( nc=3, cw=[(1,10),(2,self._width-20), (3,10)]) uiInfo.setSpace() cmds.button( l= 'SET', c=self.setCmd, h=25 ) uiInfo.setSpace() cmds.setParent( '..' ) uiInfo.setSpace( 5 ) cmds.window( self._winName, e=1, w=self._width, h=self._height ) cmds.showWindow( self._winName )