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']
def set_current_pipe(self): self.treewidget.clear() current_show = self.combobox_show.currentText().encode() current_pipe = self.combobox_pipe.currentText().encode() if current_show == 'None': return if current_pipe == 'None': return spipe = studioPipe.Pipe(current_show, current_pipe) subfileds = spipe.pipe_inputs['subfield']['values'] publish_data = spipe.get() self.treewidget.setColumnCount(10) index = 1 for caption in publish_data: for subfiled in subfileds: if subfiled not in publish_data[caption]: continue versions = publish_data[caption][subfiled].keys() versions = common.set_version_order(versions) for version in versions: column_items = [['No', index], ['caption', caption], ['subfield', subfiled], ['version', version]] publish_data[caption][subfiled][version].pop('version') publish_data[caption][subfiled][version].pop('subfield') publish_data[caption][subfiled][version].pop('caption') version_contents = sorted( publish_data[caption][subfiled][version].keys()) for each in version_contents: column_items.append([ each, publish_data[caption][subfiled][version][each] ]) version_item = swidgets.append_treewidget_item( self.treewidget, column_items) table_data = [ publish_data[caption][subfiled][version]['table'], publish_data[caption][subfiled][version]['location'], version, subfiled, caption, ] version_item.setStatusTip(0, str(table_data)) index += 1
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()
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()
def remove_items(self, treewidget): selecteditems = treewidget.selectedItems() if not selecteditems: return current_show = self.combobox_show.currentText().encode() current_pipe = self.combobox_pipe.currentText().encode() print '# remove' for item in selecteditems: contents = item.statusTip(0) if not contents: continue table, location, version, subfiled, caption = ast.literal_eval( contents) spipe = studioPipe.Pipe(current_show, current_pipe) spipe.remove(table, location) print '%s: %s' % ('show'.rjust(15), current_show) print '%s: %s' % ('pipe'.rjust(15), current_pipe) print '%s: %s' % ('version'.rjust(15), version) print '%s: %s' % ('subfield'.rjust(15), subfiled) print '%s: %s' % ('caption'.rjust(15), caption) self.set_current_pipe() print '# remove success!...'
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()
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()