[Closed] skipOps.GetBoneName breaking?
hi
http://forums.cgsociety.org/showthread.php?t=1043130
so i found the post above where Im doing more or less the same thing, looping over the bones in a skin and removing ones that i don
t want to be in there, the sam,as LoneRobots posted code. I`m looking into an XML for the bone names that should be removed, but other than that its working the same way, and actually removing the bones i dont want.
The problem is after that the skinOps function
skinOps.getBoneName skinMod 1 0
returns an error
-- Runtime error: Invalid Bone index in the scene: 1
This is meaning i cannot add some other bones that were missing from the initial list of bones in the skin modifier.
Any ideas why this would be happening?
The other functions still work to give me the number of bones backa nd other stuff but this one (the one i need ) fails
I cant see any update in the script and have tried manually pressing the update function, i cant see any refresh bone list or anything like that so i have no idea what i have done wrong.
At this point im thinking about saving all the weights of the bones per vertex and adding a new sking mod with the bones i want and importing the weights, but this is alot more work than i really need to do if i can get hat function to work.
Any help would be appreciated
Thanks
Dave