def calculate_pts(crv, *args):
"""
uses the window to get the number of pts that should be in the curve
"""
mode = cmds.radioButtonGrp(widgets["methodRBG"], q=True, sl=True)
if mode == 1:
cLen = cmds.arclen(crv, ch=False)
perUnit = cmds.floatFieldGrp(widgets["recoFFG"], q=True, v1=True)
total = int(cLen * perUnit)
if mode == 2:
total = cmds.intFieldGrp(widgets["totalIFBG"], q=True, v1=True)
# print "curve = {0}, total = {1}".format(crv, total)
return total
评论列表
文章目录