Example #1
0
 def __init__(self, pipe, application=None):
     self.pipe = pipe
     self.application = application
     shows = studioShow.Show()
     self.current_show = shows.get_current_show()
     self.current_show = 'btm'  # to remove
     self.spipe = studioPipe.Pipe(self.current_show, self.pipe)
     self.tags = ['order', 'key', 'name', 'location']
Example #2
0
def get_shows(verbose=False):
    show = studioShow.Show()
    data = show.get_shows(verbose=False)
    if not data:
        print '#warnings: not found any shows'
        return None
    if verbose:
        for show in data.values():
            print show
    return data.values()
Example #3
0
 def __init__(self, parent=None, launcher=None):
     super(Window, self).__init__(parent)
     # self.setParent(parent)
     self.launcher = launcher
     self.title = 'Show configure'
     self.width = 729
     self.height = 663
     self.shows = studioShow.Show()
     self.setup_ui()
     self.set_default()
Example #4
0
 def set_default(self):
     sshow = studioShow.Show()
     preset_data = sshow.get_preset_data()
     shows = sshow.get_shows(preset_data=preset_data, verbose=False)
     self.combobox_show.addItem('None')
     for each in shows:
         icon_path = preset_data[shows[each]
                                 [1]]['current_show']['show']['icon'][1]
         icon = QtGui.QIcon()
         icon.addPixmap(QtGui.QPixmap(icon_path), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
         self.combobox_show.addItem(icon, shows[each][1])
Example #5
0
def launch_application(current_show, current_application):
    show = studioShow.Show()
    application, application_type = show.get_current_application(
        current_show, current_application)
    if not application:
        print '#warnings: not found %s application under %s show' % (
            current_application, current_show)
        return
    show.launch(current_show,
                application_type,
                application,
                contents=None,
                thread=False)
Example #6
0
 def __init__(self, parent=None, mode=None):  
     super(Window, self).__init__(parent)
     self.mode = mode        
     self.title = 'Studio Launcher'
     self.width = 720
     self.height = 750
     self.show_icon_size = [256, 128]
     self.show_data = {}
     self.current_show = None
     self.shows = studioShow.Show()
     self.setup_ui()
     # self.setup_console()        
     self.setup_menu()
     self.setup_toolbar()
     self.setup_icons()
     self.setup_default()
Example #7
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()
Example #8
0
def show_applications(current_show, verbose=False):
    show = studioShow.Show()
    data = show.get_show_preset_data(current_show)
    if not data:
        return None
    versions = []
    for application in show.application_types:
        if application not in data:
            continue
        if not data[application]:
            continue
        applications = common.sort_dictionary(data[application])
        for each in applications:
            name = [each, data[application][each]['version'][1]]
            versions.append(name)
            if verbose:
                print application.rjust(25), name
    return versions
Example #9
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()
Example #10
0
 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()
Example #11
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()
Example #12
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()
Example #13
0
 def __init__(self, current_show, application=None):
     self.shows = studioShow.Show()
     self.current_show = current_show
     self.current_application = application