Notifications
Clear all

[Closed] Skin vertices

How can I access the specified vertices that are associated with a Skin : Modifier, the only useful operation I could find was “skinOps.getNumberVertices”??? Or do I got it wrong?

What I want to do is: Exporting the vertices with weights associated to a skin that is affected by a bone.

With Best Regards
Rikardo

3 Replies

Please check these function in maxscript reference:
[left]


-skinOps.GetNumberBones <Skin>
Returns the number of bones in the system.[/left]
[left] [/left]
[left]-skinOps.GetBoneName <Skin> <bone_integer> <nameflag_index>
Returns the name of the indexed bone as a string. where nameflag_index can be 0 or 1. If nameflag_index = 0 the node that holds the transform for this bone is returned; = 1 the name that exists in the list box is returned. If a Bones system is used for the Skin bones, the transform for a bone is held by its parent.[/left]
[left] [/left]
[left]-skinOps.GetVertexWeight <Skin> <vertex_integer> <vertex_bone_integer>
Returns the influence of the Nth bone affecting the specified vertex.[/left]
[left] [/left]
[left]-skinOps.GetVertexWeightBoneID <Skin> <vertex_integer> <vertex_bone_integer>
Returns the system bone index of the Nth bone affecting the specified vertex.[/left]
[left] [/left]
[left]-skinOps.GetVertexWeightCount <Skin> <vertex_integer>
Returns the number of bones influencing the specified vertex.

[/left]
[left] [/left]
[left]Please note the “Nth bone” in 3rd and 4th function means Nth bone on this skinOps,not in the current scene.[/left]

Skin : Modifier[left]
[/left]
[b][b]

[/b][/b][left][b][b]skinOps.[/b][/b][b][b]GetVertexWeight[/b][/b] <Skin>  <vertex_integer> <vertex_bone_integer>

[/left]
[left]Returns  the influence of the Nth bone affecting the specified vertex.
[/left]
[left][b][b]

[/b][/b]
[/left]
[left]wish you good luck:P

[/left]

Aha now I think I got it. Then I only walk thru all vertices and check how much they each are affected by the bones… Thought that I could get the vertices that was affected by something like “Bone01 -> GetAffectedVertices()”