def popupSetting(self):

        popupFieldMesh = cmds.popupMenu(p=self.field_mesh.txf)
        sgBFunction_ui.updatePathPopupMenu(self.field_mesh.txf, popupFieldMesh)

        popupFieldUV = cmds.popupMenu(p=self.field_uv.txf)
        sgBFunction_ui.updatePathPopupMenu(self.field_uv.txf, popupFieldUV)
 def popupSetting(self):
     
     popupFieldMesh = cmds.popupMenu( p = self.field_mesh.txf )
     sgBFunction_ui.updatePathPopupMenu( self.field_mesh.txf, popupFieldMesh )
     
     popupFieldUV   = cmds.popupMenu( p = self.field_uv.txf )
     sgBFunction_ui.updatePathPopupMenu( self.field_uv.txf, popupFieldUV )
    def create(self):
        
        if cmds.window( WinA_Global.winName, ex=1 ):
            cmds.deleteUI( WinA_Global.winName, wnd=1 )
        cmds.window( WinA_Global.winName, title = WinA_Global.title, titleBarMenu = WinA_Global.titleBarMenu )
        
        form = cmds.formLayout()
        exportPathForm    = self.uiExportPath.create()
        exportTypeForm    = self.uiExportType.create()
        timeRanges        = self.uiTimeRanges.create()
        buttonsForm = cmds.button( l='<<   EXPORT   A L E M B I C   >>', bgc=[0.85,0.85,0.45], h=30,
                     c = WinA_Cmd.export )
        cmds.setParent( '..' )
        
        cmds.formLayout( form, e=1,
                         af = [( exportPathForm, 'top', 8 ), ( exportPathForm, 'left', 0 ), ( exportPathForm, 'right', 5 ),
                               ( exportTypeForm, 'left',0 ), ( exportTypeForm, 'right', 0 ),
                               ( timeRanges, 'left', 0 ), ( timeRanges, 'right', 0 ),
                               ( buttonsForm, 'left', 0 ), ( buttonsForm, 'right', 0 ) ],
                         ac = [( exportTypeForm, 'top', 8, exportPathForm ),
                               ( timeRanges, 'top', 8, exportTypeForm ),
                               ( buttonsForm, 'top', 8, timeRanges )] )

        cmds.window( WinA_Global.winName, e=1,
                     w = WinA_Global.width, h = WinA_Global.height )
        cmds.showWindow( WinA_Global.winName )

        self.button = buttonsForm
        
        WinA_Cmd.setFrameRange()
        WinA_Cmd.setExportPath()
        popupMenu = cmds.popupMenu( p= WinA_Global.exportPath_txf )
        sgBFunction_ui.updatePathPopupMenu( WinA_Global.exportPath_txf, popupMenu )
    def setUiCommand(self):

        cmds.button(self.button, e=1, c=WinA_Cmd.export)

        exportPathPopup = cmds.popupMenu(p=WinA_Global.txf_export)
        sgBFunction_ui.updatePathPopupMenu(WinA_Global.txf_export,
                                           exportPathPopup)
 def setUiCommand(self):
     
     cmds.button( self.button, e=1, c= WinA_Cmd.export )
     
     exportKeyPathPopup = cmds.popupMenu( p=WinA_Global.exportKeyPath_txf )
     sgBFunction_ui.updatePathPopupMenu( WinA_Global.exportKeyPath_txf, exportKeyPathPopup )
     
     exportCachePathPopup = cmds.popupMenu( p=WinA_Global.exportCachePath_txf )
     sgBFunction_ui.updatePathPopupMenu( WinA_Global.exportCachePath_txf, exportCachePathPopup )
 def setUiCommand(self):
     
     cmds.button( self.button, e=1, c= WinA_Cmd.export )
     
     items = cmds.radioCollection( WinA_Global.exportType_radio, q=1, cia=1 )
     for item in items:
         cmds.radioButton( item, e=1, cc= WinA_Cmd.setWindowCondition )
     
     cmds.checkBox( WinA_Global.searchForType_check, e=1, cc= WinA_Cmd.splitStringEnable )
     
     exportPathPopup = cmds.popupMenu( p=WinA_Global.exportPath_txf )
     sgBFunction_ui.updatePathPopupMenu( WinA_Global.exportPath_txf, exportPathPopup )
    def setUiCommand(self):

        cmds.button(self.button, e=1, c=WinA_Cmd.export)

        exportKeyPathPopup = cmds.popupMenu(p=WinA_Global.exportKeyPath_txf)
        sgBFunction_ui.updatePathPopupMenu(WinA_Global.exportKeyPath_txf,
                                           exportKeyPathPopup)

        exportCachePathPopup = cmds.popupMenu(
            p=WinA_Global.exportCachePath_txf)
        sgBFunction_ui.updatePathPopupMenu(WinA_Global.exportCachePath_txf,
                                           exportCachePathPopup)
Пример #8
0
 def setUiCommand(self):
     
     cmds.button( self.button, e=1, c= WinA_Cmd.export )
     
     items = cmds.radioCollection( WinA_Global.exportType_radio, q=1, cia=1 )
     for item in items:
         cmds.radioButton( item, e=1, cc= WinA_Cmd.setWindowCondition )
     
     cmds.checkBox( WinA_Global.searchForType_check, e=1, cc= WinA_Cmd.splitStringEnable )
     
     exportPathPopup = cmds.popupMenu( p=WinA_Global.exportPath_txf )
     sgBFunction_ui.updatePathPopupMenu( WinA_Global.exportPath_txf, exportPathPopup )
Пример #9
0
    def create(self):

        if cmds.window(WinA_Global.winName, ex=1):
            cmds.deleteUI(WinA_Global.winName, wnd=1)
        cmds.window(WinA_Global.winName,
                    title=WinA_Global.title,
                    titleBarMenu=WinA_Global.titleBarMenu)

        form = cmds.formLayout()
        importPathForm = self.uiImportPath.create()
        listLabelForm = self.uiAlembicListlabel.create()
        listBaseForm = self.uiAlembicListBase.create()
        buttonForm = self.uiButton.create()
        cmds.setParent('..')

        cmds.formLayout(form,
                        e=1,
                        af=[(importPathForm, 'top', 8),
                            (importPathForm, 'left', 0),
                            (importPathForm, 'right', 0),
                            (buttonForm, 'left', 0), (buttonForm, 'right', 0),
                            (listLabelForm, 'left', 0),
                            (listLabelForm, 'right', 0),
                            (listBaseForm, 'left', 0),
                            (listBaseForm, 'right', 0)],
                        ac=[(listLabelForm, 'top', 8, importPathForm),
                            (listBaseForm, 'top', 8, listLabelForm),
                            (buttonForm, 'top', 16, listBaseForm)])

        cmds.window(WinA_Global.winName,
                    e=1,
                    w=WinA_Global.width,
                    h=WinA_Global.height,
                    rtf=1)
        cmds.showWindow(WinA_Global.winName)

        import cPickle
        f = open(WinA_Global.pathInfo, 'r')
        path = cPickle.load(f)
        f.close()
        cmds.textField(WinA_Global.importPath_txf, e=1, tx=path)
        WinA_Cmd.updateAlembic()

        popup = cmds.popupMenu(p=WinA_Global.importPath_txf)
        sgBFunction_ui.updatePathPopupMenu(WinA_Global.importPath_txf, popup,
                                           WinA_Cmd.updateAlembic)

        cmds.checkBox(WinA_Global.chk_all, e=1, cc=WinA_Cmd.checkAllEdit)
        for chk in WinA_Global.checkList:
            cmds.checkBox(chk, e=1, cc=WinA_Cmd.checkEachEdit)

        cmds.button(WinA_Global.button, e=1, c=WinA_Cmd.cmdImport)
Пример #10
0
    def create(self):

        if cmds.window(WinA_Global.winName, ex=1):
            cmds.deleteUI(WinA_Global.winName, wnd=1)
        cmds.window(WinA_Global.winName,
                    title=WinA_Global.title,
                    titleBarMenu=WinA_Global.titleBarMenu)

        form = cmds.formLayout()
        exportPathForm = self.uiExportPath.create()
        exportTypeForm = self.uiExportType.create()
        timeRanges = self.uiTimeRanges.create()
        buttonsForm = cmds.button(l='<<   EXPORT   A L E M B I C   >>',
                                  bgc=[0.85, 0.85, 0.45],
                                  h=30,
                                  c=WinA_Cmd.export)
        cmds.setParent('..')

        cmds.formLayout(form,
                        e=1,
                        af=[(exportPathForm, 'top', 8),
                            (exportPathForm, 'left', 0),
                            (exportPathForm, 'right', 5),
                            (exportTypeForm, 'left', 0),
                            (exportTypeForm, 'right', 0),
                            (timeRanges, 'left', 0), (timeRanges, 'right', 0),
                            (buttonsForm, 'left', 0),
                            (buttonsForm, 'right', 0)],
                        ac=[(exportTypeForm, 'top', 8, exportPathForm),
                            (timeRanges, 'top', 8, exportTypeForm),
                            (buttonsForm, 'top', 8, timeRanges)])

        cmds.window(WinA_Global.winName,
                    e=1,
                    w=WinA_Global.width,
                    h=WinA_Global.height)
        cmds.showWindow(WinA_Global.winName)

        self.button = buttonsForm

        WinA_Cmd.setFrameRange()
        WinA_Cmd.setExportPath()
        popupMenu = cmds.popupMenu(p=WinA_Global.exportPath_txf)
        sgBFunction_ui.updatePathPopupMenu(WinA_Global.exportPath_txf,
                                           popupMenu)
    def create(self):
        
        if cmds.window( WinA_Global.winName, ex=1 ):
            cmds.deleteUI( WinA_Global.winName, wnd=1 )
        cmds.window( WinA_Global.winName, title= WinA_Global.title, titleBarMenu = WinA_Global.titleBarMenu )

        form = cmds.formLayout()
        importPathForm = self.uiImportPath.create()
        listLabelForm  = self.uiAlembicListlabel.create()
        listBaseForm   = self.uiAlembicListBase.create()
        buttonForm     = self.uiButton.create()
        cmds.setParent( '..' )
        
        cmds.formLayout( form, e=1,
                         af=[(importPathForm, 'top', 8), (importPathForm, 'left', 0), (importPathForm, 'right', 0),
                             (buttonForm,     'left', 0 ), (buttonForm,    'right', 0 ), 
                             (listLabelForm, 'left', 0 ), (listLabelForm, 'right', 0 ),
                             (listBaseForm, 'left', 0 ), (listBaseForm, 'right', 0 )],
                         ac=[(listLabelForm, 'top', 8, importPathForm), 
                             (listBaseForm, 'top', 8, listLabelForm), 
                             (buttonForm, 'top', 16, listBaseForm)] )
        
        cmds.window( WinA_Global.winName, e=1, w= WinA_Global.width, h= WinA_Global.height, rtf=1 )
        cmds.showWindow( WinA_Global.winName )
        
        import cPickle
        f = open( WinA_Global.pathInfo, 'r' )
        path = cPickle.load( f )
        f.close()
        cmds.textField( WinA_Global.importPath_txf, e=1, tx= path )
        WinA_Cmd.updateAlembic()
        
        popup = cmds.popupMenu( p=WinA_Global.importPath_txf )
        sgBFunction_ui.updatePathPopupMenu( WinA_Global.importPath_txf, popup, WinA_Cmd.updateAlembic )
        
        cmds.checkBox( WinA_Global.chk_all, e=1, cc= WinA_Cmd.checkAllEdit )
        for chk in WinA_Global.checkList:
            cmds.checkBox( chk, e=1, cc= WinA_Cmd.checkEachEdit )
        
        cmds.button( WinA_Global.button, e=1, c= WinA_Cmd.cmdImport )
 def setUiCommand( *args ):
     cmds.button( WinA_Global.button, e=1, c=WinA_Cmd.cmdImport )
     popupMenu = cmds.popupMenu( p= WinA_Global.importPath_txf )
     sgBFunction_ui.updatePathPopupMenu( WinA_Global.importPath_txf, popupMenu )
 def setUiCommand( *args ):
     print "button name : " , WinA_Global.button
     cmds.button( WinA_Global.button, e=1, c=WinA_Cmd.cmdImport )
     popupMenu = cmds.popupMenu( p= WinA_Global.importPath_txf )
     sgBFunction_ui.updatePathPopupMenu( WinA_Global.importPath_txf, popupMenu )
 def setUiCommand(*args):
     cmds.button(WinA_Global.button, e=1, c=WinA_Cmd.cmdExport)
     popupMenu = cmds.popupMenu(p=WinA_Global.exportPath_txf)
     sgBFunction_ui.updatePathPopupMenu(WinA_Global.exportPath_txf,
                                        popupMenu)
 def setUiCommand(self):
     
     cmds.button( self.button, e=1, c= WinA_Cmd.export )
     
     exportPathPopup = cmds.popupMenu( p=WinA_Global.txf_export )
     sgBFunction_ui.updatePathPopupMenu( WinA_Global.txf_export, exportPathPopup )