I am having a problem with skinOps.ReplaceVertexWeights.
When I use it to replace a bone by another new bone on a skinned mesh, no problem everything works great.
However, when I use it to replace a bone by another bone already skinned, I am getting unexpected results :
You can see on this cube bellow :
I am trying to put the weight from point 1 to point 4 and I would expect then :
Point to be 0 > that’s good
Point 4 to be : 592
Point 2 and 3 to be unchanged.
As you can see it isnt working as expected.
Here’s my code :
skinOps.unNormalizeVertex MyObject.modifiers[#Skin] vert true skinOps.ReplaceVertexWeights MyObject.modifiers[#skin] TheVert MySelectedFromBoneIndex 0 skinOps.ReplaceVertexWeights MyObject.modifiers[#skin] TheVert BoneArray WeightArray skinOps.unNormalizeVertex MyObject.modifiers[#Skin] TheVert false
I am on max 2015, and I have read there was some bugs with that function in 2015 that got sorted in 2017, would this be one of the bug ? Is there a workaround ?