zbw_curveTools.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:zTools 作者: zethwillie 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号