def passToExecute(*args):
lowResCurves = []
highResCurves = []
secCheck = cmds.checkBoxGrp(widgets["secondCBG"], q=True, v1=True)
name = cmds.textFieldGrp(widgets["nameTFG"], q=True, tx=True)
# get values from UI
#---------------- check that num is greater than 3, IN FACT MAKE SURE IT IS ODD
num = cmds.intFieldGrp(widgets["numCtrlIFG"], q=True, v1=True)
centerLoc = cmds.textFieldButtonGrp(widgets["cntrPivTFBG"], q=True, tx=True)
firstCrv = cmds.textFieldButtonGrp(widgets["upCrvTFBG"], q=True, tx=True)
firstNameSuf = cmds.textFieldGrp(widgets["upNameTFG"], q=True, tx=True)
firstName = "{0}_{1}".format(name, firstNameSuf)
if num and name and centerLoc and firstCrv and firstName:
curveJntRigExecute(num, centerLoc, firstCrv, firstName, crvType="up")
else:
cmds.warning("Some fields weren't filled out for the first curve! Undo and try again!")
return
if secCheck:
secondCrv = cmds.textFieldButtonGrp(widgets["downCrvTFBG"], q=True, tx=True)
secondNameSuf = cmds.textFieldGrp(widgets["downNameTFG"], q=True, tx=True)
secondName = "{0}_{1}".format(name, secondNameSuf)
if num and centerLoc and secondCrv and secondName:
curveJntRigExecute(num, centerLoc, secondCrv, secondName, crvType="down")
else:
cmds.warning("Some fields weren't filled out for the second curve! Undo and try again!")
return
评论列表
文章目录