Hello.
I've been looking around for an answer to my problem. Although, I have found similar problems, I have not found ones with the right answers for my specific needs. What I would like to do, is get vertex indices from a connected bone in a skin modifier. All I need to check is if the vertex weight is equal to one ( connected to this bone ) or equal to zero ( not connected to this bone ). Also, is there a way I can print a hierarchy of the bones like a tree in a text file? I think that would be helpful in seeing if the right vertex indices are "connected" to the right bones.
Any help is greatly appreciated. Thank you.
Replies
Thank you for the code. So, it appears to be working right now. I also edited the code to create a new script to write out the contents of the vertices connected to the bone. However, it's only printing it out the short version of an array - with three periods separating the first element from the last. Is there a way I can print out each bone name, and the vertices on that bone?
Here's how the code looks now - with my two additions:
Edit: I figured out that the second parameter of your bone function is what bone is being referenced. You wouldn't happen to know anything about printing a sort of tree of what bones are connected to which, would you?
Edit2: Is it possible get get any vertices that aren't applied directly to the skin, but are still present in the model itself?