我想使用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