示例#1
0
def buildFromSelection(*args):
    """
    Build the rig from the guide root selection or a component root.
    """
    print mgear.logInfos()
    rig = rg.Rig()
    rig.buildFromSelection()
示例#2
0
def log_window():
    if mgear.logMode and mgear.use_log_window:
        log_window_name = "mgear_shifter_build_log_window"
        log_window_field_reporter = "mgear_shifter_log_field_reporter"
        if not pm.window(log_window_name, exists=True):
            logWin = pm.window(
                log_window_name,
                title="Shifter Build Log",
                iconName="Shifter Log",
            )
            pm.columnLayout(adjustableColumn=True)
            pm.cmdScrollFieldReporter(
                log_window_field_reporter, width=800, height=500, clr=True
            )
            pm.button(
                label="Close",
                command=(
                    'import pymel.core as pm\npm.deleteUI("'
                    + logWin
                    + '", window=True)'
                ),
            )
            pm.setParent("..")
            pm.showWindow(logWin)
        else:
            pm.cmdScrollFieldReporter(
                log_window_field_reporter, e=True, clr=True
            )
            pm.showWindow(log_window_name)
        mgear.logInfos()
示例#3
0
def log_window():
    logWin = pm.window(title="Shifter Build Log", iconName='Shifter Log')
    pm.columnLayout(adjustableColumn=True)
    pm.cmdScrollFieldReporter(width=800, height=500, clr=True)
    pm.button(label='Close', command=(
        'import pymel.core as pm\npm.deleteUI(\"' + logWin +
        '\", window=True)'))
    pm.setParent('..')
    pm.showWindow(logWin)
    mgear.logInfos()
示例#4
0
文件: gui.py 项目: zakuro9715/mgear
    def buildFromSelection(self, *args):

        print mgear.logInfos()
        rg = shifter.Rig()
        rg.buildFromSelection()