Exemple #1
0
    def inspectSettings(self, *args):

        oSel = pm.selected()
        if oSel:
            root = oSel[0]
        else:
            pm.displayWarning(
                "please select one object from the componenet guide")
            return

        comp_type = False
        guide_root = False
        while root:
            if pm.attributeQuery("comp_type", node=root, ex=True):
                comp_type = root.attr("comp_type").get()
                break
            elif pm.attributeQuery("ismodel", node=root, ex=True):
                guide_root = root
                break
            root = root.getParent()
            pm.select(root)

        if comp_type:
            guide = shifter.importComponentGuide(comp_type)
            gqt.showDialog(guide.componentSettings)

        elif guide_root:
            module_name = "mgear.maya.shifter.guide"
            guide = __import__(module_name, globals(), locals(), ["*"], -1)
            gqt.showDialog(guide.guideSettings)

        else:
            pm.displayError(
                "The selected object is not part of component guide")
Exemple #2
0
def showLipRigUI(*args):
    gqt.showDialog(lipRigUI)
Exemple #3
0
def showEyeRigUI(*args):
    gqt.showDialog(eyeRigUI)
Exemple #4
0
def open(*args):

    gqt.showDialog(Synoptic)
Exemple #5
0
        path = self.gtUIInst.path_lineEdit.text()
        postScript = self.gtUIInst.script_lineEdit.text()

        if name and rigTopNode and meshTopNode and path:
            exportAssetAssembly(
                name, rigTopNode, meshTopNode, path, postScript)
        else:
            pm.displayWarning(
                "Name, Rig Top Node, Mesh Top Node and path "
                "are mandatory fields. Please check it.")

    # Connect slots
    def createConnections(self):
        self.gtUIInst.assetName_lineEdit.editingFinished.connect(
            partial(gameTools._validCharacters,
                    self.gtUIInst.assetName_lineEdit))
        self.gtUIInst.rigNode_pushButton.clicked.connect(
            self.populateRigTopNode)
        self.gtUIInst.meshNode_pushButton.clicked.connect(
            self.populateMeshTopNode)
        self.gtUIInst.path_pushButton.clicked.connect(
            self.populateOutputFolder)
        self.gtUIInst.script_pushButton.clicked.connect(self.populateScript)
        self.gtUIInst.disconnectExport_pushButton.clicked.connect(
            self.disconnectExport)


if __name__ == "__main__":

    gqt.showDialog(gameTools)
Exemple #6
0
def open(*args):
    # open the synoptic dialog, without clean old instances
    gqt.showDialog(Synoptic, False)
Exemple #7
0
def openChannelWrangler(*args):
    gqt.showDialog(channelWrangler)
Exemple #8
0
            operator (index): Operator to use
        """
        index_list = self._getSelectedRowsIndex()
        if index_list:
            for index in index_list:
                oCombo = self.table.cellWidget(index.row(), 4)
                oCombo.setCurrentIndex(operator)
        else:
            for i in reversed(range(self.table.rowCount())):
                oCombo = self.table.cellWidget(i, 4)
                oCombo.setCurrentIndex(operator)

    def setMoveOperator(self):
        """set the channel wrangler operator to Move
        """
        self._setOperator(0)

    def setProxyOperator(self):
        """set the channel wrangler operator to Proxy
        """
        self._setOperator(1)


def openChannelWrangler(*args):
    gqt.showDialog(channelWrangler)


####################################
if __name__ == "__main__":
    gqt.showDialog(channelWrangler)
Exemple #9
0
def openSoftTweakManager(*args):
    pyqt.showDialog(softTweakManager)