使用Python API获取顶点权重骨骼计数

时间:2018-06-18 14:40:36

标签: python 3dsmax

我想使用Python API来获得骨架模式是顶点权重骨骼计数,如下所示:

from pymxs import runtime as rt
import MaxPlus
max_root = MaxPlus.Core.GetRootNode()
mesh_node = max_root.GetChild(0)
#there is only one modifier  the skin modifier 
mod = mesh_node.GetModifier(0)  
#get the first vertex  weight count
weight_count = rt.skinOps.GetVertexWeightCount(mod, 0)

我收到此错误:

Unable to convert: Animatable(Skin) to type: Modifier

0 个答案:

没有答案