Пример #1
0
 def __init__(self, parent=None):
     super(TaskInit, self).__init__(parent)
     self.set_signals()
     self.selected = None
     self.__engine = get_engine.get_engine()
     self.__db = self.my_task_widget.db
     self.__logger = logging.getLogger("Task Init")
Пример #2
0
Файл: ui.py Проект: jonntd/mira
 def __init__(self, name=None, parent=None):
     super(FileListWidget, self).__init__(parent)
     self.setFocusPolicy(Qt.NoFocus)
     self.name = name
     self.__engine = get_engine.get_engine()
     self.menu = QMenu(self)
     self.open_action = QAction("Open", self)
     self.copy_to_local_action = QAction("Receive The Task", self)
     self.show_in_filesystem_action = QAction("Show in File System", self)
     self.set_signals()
     self.set_style()
Пример #3
0
 def __init__(self, parent=None):
     super(Entity, self).__init__(parent)
     self.__init_asset_type()
     self.db = db_api.DbApi(self.project).db_obj
     self.__main_menu = QMenu()
     self.__entity_action_group = QActionGroup(self)
     self.__task_action_group = QActionGroup(self)
     self.__set_signals()
     self.__threads = list()
     self.engine = get_engine.get_engine()
     self.__show_image = False
Пример #4
0
 def __init__(self, parent=None):
     super(TaskGet, self).__init__(parent)
     self.setObjectName("TaskGet")
     self.__logger = logging.getLogger("TaskGet")
     self.__engine = get_engine.get_engine()
     self.__db = db_api.DbApi(self.project).db_obj
     self.init()
     self.set_style()
     self.set_model()
     self.set_signals()
     self.selected = None
Пример #5
0
 def get_filter(self):
     app = get_engine.get_engine()
     filter_list = []
     if app == "maya":
         filter_list = ["*.ma", "*.mb"]
     elif app == "python":
         filter_list = []
     elif app == "nuke":
         filter_list = ["*.nk"]
     elif app == "houdini":
         filter_list = ["*.hip"]
     return filter_list
Пример #6
0
def init_shotgun_menu(project):
    from miraLibs.sgLibs import get_tk_object
    path = get_scene_name.get_scene_name()
    tk = get_tk_object.get_tk_object(project)
    engine = get_engine.get_engine()
    if start_engine(tk, path, "%s_asset_local" % engine):
        return
    if start_engine(tk, path, "%s_asset_work" % engine):
        return
    if start_engine(tk, path, "%s_shot_local" % engine):
        return
    if start_engine(tk, path, "%s_shot_work" % engine):
        return