如何从玛雅的脚本中改变变形人的权重?
这个问题最适合Pymel in Maya 2013,但如果不可能,我仍然有兴趣知道Python、MEL或使用C++ Maya-API的答案。
发布于 2015-11-18 09:59:41
对于deformers,您可以将python中的权重查询为:
VertexNb = cmds.polyEvaluate(Mesh, v=1) - 1
weight = cmds.getAttr('{0}.weightList[0].weights[0:{1}]'.format(deformerNode, VertexNb))混合形状:
VertexNb = cmds.polyEvaluate(Mesh, v=1)
weight = cmds.getAttr('{0}.inputTarget[0].baseWeights[0:{1}]'.format(blendShapeNode, VertexNb))设定价值:
cmds.setAttr('{0}.weightList[0].weights[0:{1}]'.format(deformerNode, VertexNb), *weight, size=len(weight))https://stackoverflow.com/questions/33771593
复制相似问题