def _add_context_buttons(self): """ Adds a context panel which displays the current context """ #ctx = self._engine.context #ctx_name = str(ctx) # todo: display context on menu (requires sgtk core 0.12.7+) # create the panel object photoshop.add_button("Jump to Shotgun", self._jump_to_sg) photoshop.add_button("Jump to File System", self._jump_to_fs)
def add_button(self): """ Adds an app command to the panel """ photoshop.add_button(self.name, self.callback)