Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
    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()
Exemplo n.º 3
0
    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()
Exemplo n.º 4
0
    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()
Exemplo n.º 5
0
 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()
Exemplo n.º 6
0
 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()
Exemplo n.º 7
0
 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()
Exemplo n.º 8
0
    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()
Exemplo n.º 9
0
    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()
Exemplo n.º 10
0
 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()