zbw_bezierRibbon.py 文件源码

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

项目:zTools 作者: zethwillie 项目源码 文件源码
def getGeo(self, *args):
        #get selection and put it's full path into the tfbg
        sel = cmds.ls(sl=True, type="transform", l=True)
        print(sel)
        if len(sel) != 1:
            cmds.warning("yo. Select one and only one nurbs surface")
        else:
            #check for nurbsy-ness
            if (cmds.objectType(cmds.listRelatives(sel[0], shapes=True)[0])!="nurbsSurface"):
                cmds.error("Selected is not a nurbs surface")
            else:
                cmds.textFieldButtonGrp(self.widgets["geoTFBG"], e=True, tx=sel[0])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号