Exemplo n.º 1
0
    def __init__(self, parent=platforms.get_qwidget()):
        super(MainWindow, self).__init__(parent)
        self.image_object = None
        self.width, self.height = [500, 500]
        self.publish_format = 'shader'
        self.image_format = 'png'
        self.tool_mode = 'publish'
        self.currnet_publish = None

        self.preference = preferences.Preference(parent=None)
        self.folder = studioFolder.Folder()
        self.studio_maya = studioMaya.Maya()
        self.catalogue = catalogue.Catalogue(parent=None)
        self.model = model.Model(parent=None)
        self.tool_kit_object, self.tool_kit_name, self.version = platforms.get_tool_kit(
        )
        self.tool_kit_titile = '{} {}'.format(self.tool_kit_name, self.version)
        # to check the preferencees
        resource_path = resources.getResourceTypes()['preference'].encode()
        self.rw = readWrite.ReadWrite(t='preference',
                                      path=resource_path,
                                      format='json',
                                      name='library_preferences',
                                      tag='shader_library')
        self.library_paths = self.rw.get_library_paths()
        if cmds.dockControl(self.tool_kit_object, q=1, ex=1):
            cmds.deleteUI(self.tool_kit_object, ctl=1)

        self.setup_ui()
        self.set_icons()
        self.load_library_folders(self.treewidget)
        self.parent_maya_layout()
Exemplo n.º 2
0
 def __init__(self, parent=None):
     super(Model, self).__init__(parent=None)
     self.studio_image = studioImage.ImageCalibration()
     self.studio_maya = studioMaya.Maya()
     self._width, self._height = 150, 150
     self.setup_ui()