Exemplo n.º 1
0
 def show_options_menu(self):
     self.options_widget = options_widget.Main(self)
     self.options_widget.add_item('Launch', self.parent.open)
     self.options_widget.add_item('Folder', self.parent.open_folder)
     self.options_widget.add_item('Add to user shelf',
                                  self.parent.add_asset_to_shelf)
     self.options_widget.add_item('Copy asset path',
                                  self.parent.copy_asset_path)
     self.options_widget.add_item('Archive', self.parent.remove_asset)
     if (self.parent.selected_asset.stage == None
             and self.parent.selected_asset.name != None
             and self.parent.selected_asset.domain == defaults._sequences_):
         self.options_widget.add_item('Change range',
                                      self.parent.modify_frame_range)
     if (self.parent.selected_asset.name == self.parent.asset.name) and (
             self.parent.selected_asset.stage
             == self.parent.asset.stage) and self.parent.pin:
         label = 'Unpin'
     elif (self.parent.selected_asset.name == self.parent.asset.name) and (
             self.parent.selected_asset.stage
             == self.parent.asset.stage) and not self.parent.pin:
         label = 'Pin'
     else:
         label = None
     if label:
         self.options_widget.add_item(label, self.parent.toggle_pin)
     build.launch_options(self.options_widget)
Exemplo n.º 2
0
 def show_options_menu(self):
     self.options_widget = options_widget.Main(self)
     self.options_widget.add_item("Change comment", self.change_comment)
     self.options_widget.add_item("Copy scene", self.copy_scene)
     self.options_widget.add_item("Paste scene", self.paste_scene)
     self.options_widget.add_item("Archive", self.delete_version)
     self.options_widget.add_item("Open", self.open_file)
     build.launch_options(self.options_widget)
Exemplo n.º 3
0
 def show_options_menu(self):
     if self.selectable:
         self.options_widget = options_widget.Main(self)
         self.options_widget.add_item('Remove', self.remove)
         self.options_widget.add_item('Explorer', self.explorer)
         #self.options_widget.add_item('Launch', lambda: self.asset.launch(self.node_editor.main_window))
         self.options_widget.add_item('Parameters', self.show_imported_asset_manager)
         self.options_widget.add_item('Set last version', self.set_last_version)
         build.launch_options(self.options_widget)
Exemplo n.º 4
0
 def show_options_menu(self):
     self.options_widget = options_widget.Main(self)
     self.options_widget.add_item("Change comment", self.change_comment)
     self.options_widget.add_item("Explorer", self.open_folder)
     self.options_widget.add_item("Show", self.open_file)
     build.launch_options(self.options_widget)
Exemplo n.º 5
0
 def show_options_menu(self):
     self.options_widget = options_widget.Main(self)
     self.options_widget.add_item("Copy references", self.copy_references)
     self.options_widget.add_item("Paste references", self.paste_references)
     build.launch_options(self.options_widget)
Exemplo n.º 6
0
 def show_options_menu(self):
     self.options_widget = options_widget.Main(self)
     self.options_widget.add_item('Explorer', self.explorer)
     build.launch_options(self.options_widget)
Exemplo n.º 7
0
 def show_options_menu(self):
     self.options_widget = options_widget.Main(self)
     self.options_widget.add_item('Delete', self.delete_script)
     self.options_widget.add_item('Modify', self.modify_script)
     self.options_widget.add_item('Subprocess', self.batch_execute)
     build.launch_options(self.options_widget)