def buildFromSelection(*args): """ Build the rig from the guide root selection or a component root. """ print mgear.logInfos() rig = rg.Rig() rig.buildFromSelection()
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()
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()
def buildFromSelection(self, *args): print mgear.logInfos() rg = shifter.Rig() rg.buildFromSelection()