def curveCheck(obj):
""" takes object and returns true if it's a curve"""
shpList = cmds.listRelatives(obj, shapes=True)
if (not shpList) or (cmds.objectType(shpList[0]) != "nurbsCurve"):
return False
else:
return True
评论列表
文章目录