dm2skin.py 文件源码

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

项目:dm2skin 作者: duncanskertchly 项目源码 文件源码
def dm2skin_getVertexLocationList(mesh, frame=0):
    """Gets a list of vertex locations on the given frame."""
    numVerts = cmds.polyEvaluate(mesh, v=True)
    resultList = []
    cmds.currentTime(frame)
    for v in range(0, numVerts):
        pos = cmds.xform(mesh + '.vtx[' + str(v) + ']', q=True, ws=True, t=True)
        resultList.append(np.array([pos[0], pos[1], pos[2], 1.0]))
    return resultList
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号