Beispiel #1
0
 def do_standalone_publish(self, repair=True, **kwargs):
     application_module_path = resource.getModuleApplicationsPath()
     module = common.get_subprocess_code(application_module_path,
                                         kwargs['application'])
     if not module:
         print '#warnings not found subprocess script for %s' % kwargs[
             'application']
         return False, 'not found subprocess script'
     environ = studioEnviron.Environ(self.current_show)
     application_path, valid = environ.get_specific_environ_value(
         'show_applications', kwargs['application'], 'path')
     script_path = os.path.join(resource.getScriptPath(),
                                'maya/maya_release.py')
     kwargs['reapir'] = repair
     valid, message = module.execute(application_path, kwargs['source'],
                                     script_path, **kwargs)
     return valid, message
Beispiel #2
0
 def __init__(self, parent=None, standalone=None, application=None):
     super(Window, self).__init__(parent)
     self.standalone = standalone
     self.application = application
     self.pipe = 'assets'
     self.title = 'Asset Pull'
     self.width = 550
     self.height = 650
     self.toolbox = False
     self.shows = studioShow.Show()
     self.current_show = self.shows.get_current_show()
     self.current_show = 'btm'  # to remove
     self.environ = studioEnviron.Environ(self.current_show)
     self.spipe = studioPipe.Pipe(self.current_show, self.pipe)
     self.show_icon = self.environ.get_show_icon()
     self.setup_ui()
     self.setup_icons()
     self.setup_default()
Beispiel #3
0
 def __init__(self, parent=None, standalone=None, application=None):
     super(Window, self).__init__(parent)
     self.setWindowFlags(QtCore.Qt.Window)
     self.standalone = standalone
     self.application = application
     self.pipe = 'assets'
     self.title = 'Asset Publish/Push'
     self.width = 572
     self.height = 716
     shows = studioShow.Show()
     self.current_show = shows.get_current_show()
     self.current_show = 'btm'  # to remove
     self.environ = studioEnviron.Environ(self.current_show)
     self.spipe = studioPipe.Pipe(self.current_show, self.pipe)
     self.show_icon = self.environ.get_show_icon()
     self.source_maya = None
     self.pipe_ids = {}
     self.setup_ui()
     self.setup_menu()
     self.setup_icons()
     self.set_default()
 def __init__(self, parent=None, standalone=None):
     super(Window, self).__init__(parent)        
     self.setWindowFlags(QtCore.Qt.Window) 
     self.standalone = standalone
     self.title = 'Casting Sheet'
     self.width = 1000
     self.height = 716
     self.pipe = 'assets'
     shows = studioShow.Show()
     self.current_show = shows.get_current_show()
     self.current_show = 'btm'  # to remove
     
     self.environ = studioEnviron.Environ(self.current_show)
     self.spipe = studioPipe.Pipe(self.current_show, self.pipe) 
     self.show_icon = self.environ.get_show_icon()
     self.comp_catalogue = catalogue.Catalogue()
     
     self.setup_ui()
     self.setup_menu()
     self.setup_icons()
     self.set_default()
Beispiel #5
0
 def set_current_show(self):
     self.combobox_pipe.clear()
     if self.combobox_show.currentText() == 'None':
         return
     pipes = sorted(resource.getPipeData()['pipe'].keys())
     self.combobox_pipe.addItem('None')
     for pipe in pipes:
         icon_path = os.path.join(resource.getIconPath(), '%s.png' % pipe)
         icon = QtGui.QIcon()
         icon.addPixmap(QtGui.QPixmap(icon_path), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
         self.combobox_pipe.addItem(icon, pipe)
     current_show = self.combobox_show.currentText().encode()
     environ = studioEnviron.Environ(current_show)
     show_icon, valid = environ.get_environ_value('SHOW_ICON')
     if not show_icon:
         show_icon = os.path.join(resource.getIconPath(), 'show.png')
     size = self.button_show.minimumSize()
     swidgets.image_to_button(self.button_show,
                              size.width(),
                              size.height(),
                              path=show_icon)
Beispiel #6
0
    def __init__(self, parent=None, standalone=None, application=None):
        super(Window, self).__init__(parent)
        self.setWindowFlags(QtCore.Qt.Window)
        self.standalone = standalone
        self.application = application
        self.pipe = 'shots'
        self.upstrem_pipe = 'assets'
        self.subfield = 'layout'
        self.title = 'layout pull'
        self.width = 621
        self.height = 769
        shows = studioShow.Show()
        self.current_show = shows.get_current_show()
        self.current_show = 'btm'  # to remove

        self.environ = studioEnviron.Environ(self.current_show)
        self.spipe = studioPipe.Pipe(self.current_show, self.upstrem_pipe)
        self.comp_catalogue = catalogue.Catalogue()
        self.show_icon = self.environ.get_show_icon()

        self.setup_ui()
        self.setup_icons()
        self.set_default()
Beispiel #7
0
 def __init__(self, parent=None, standalone=None, application=None):  
     super(Window, self).__init__(parent)        
     self.setWindowFlags(QtCore.Qt.Window) 
     self.standalone = standalone
     self.application = application
     self.title = 'Asset USD Publish/Push'
     self.subfield = 'composition'
     self.width = 1029
     self.height = 883
     self.pipe = 'assets'        
     self.input_items = {}
     self.d_rgb = (0, 0, 0)
     shows = studioShow.Show()
     self.current_show = shows.get_current_show()
     self.current_show = 'btm'  # to remove
     self.environ = studioEnviron.Environ(self.current_show)
     self.spipe = studioPipe.Pipe(self.current_show, self.pipe) 
     self.show_icon = self.environ.get_show_icon()        
     self.comp_catalogue = catalogue.Catalogue()
     self.setup_ui()
     self.setup_menu()
     self.setup_icons()
     self.set_default()
Beispiel #8
0
 def get_show_path(self):
     environ = studioEnviron.Environ(self.current_show)
     show_path, valid = environ.get_environ_value('SHOW_PATH')
     return show_path
Beispiel #9
0
 def get_database_path(self, current_show, current_pipe):
     environ = studioEnviron.Environ(current_show)
     show_path, valid = environ.get_environ_value('SHOW_PATH')
     db_path = os.path.join(show_path, 'database/%s.db' % current_pipe)
     return db_path
Beispiel #10
0
 def get_show_path(self):
     environ = studioEnviron.Environ(self.current_show)
     show_path = environ.get_show_path()
     return show_path