geting bones from skin modifier
So I want to get all bones from a skin modifier, something like this:
getBones skin
unfortunatelly there is no such function in max, at least haven´t found it. The solution with geting the names of every bone and than searching for the nod with the same name is useless, as names are not uniq and there are defenetly more than 1 node with the same name. So any solution for the problem?
Comments
This might also work. No need
This might also work. No need for renaming.
I know that skinops can´t do
I know that skinops can´t do what I need, but may be there are some other posibilities. I am rally new to maxscript and unfortunatelly there is no much information about it. There is also skinutils and some other stuff, that can worck with skin, so may be there is a solution? It´s really anoing to export 100 or more characters manually, but it seems to be the only solution.
What do you want to export
What do you want to export exactly ? Do you use the skin only to know wich bones of your character you have to export ? Or do you really need to do something with the skin ?
I want to export the skined
I want to export the skined mesh with all bones, that influence the mesh.
I think there is a
I think there is a misunderstanding, I have many characters that should be exported, every character has a bone named head, hand, foot and so on. As you see the names shouldn´t be uniqe. Really don´t understand why maxscript can´t just return a reference to the bone instead of useles name.
I'm afraid skinOps can't return bone directly
I am not totally sure but I think it's impossible to get the bone directly. So you will have to get the names list and get the bones inside the good hierachy with a script like that :
It's a way to get your bones list without getNodeByName.
You could use uniquename()
That script make sure that all of your objects names are unique :
After that, you could use ListSkinBones() properly.
Then you can revert the name back by removing the 4 last characters with Tools > Rename Objects
Thanks for the script, even
Thanks for the script, even it´s a bit complikated, but like I said geting Nodes by name is not a solution as there are nodes with the same name. So if I have to rename nodes manually, I can do the rest of the job manually to and no need for any script. I really don´t understand, why max gives a lot of useless functions, but none to get the node from bone list of a skin modifier.
Sorry for dobleposting.
Sorry for dobleposting.
Use skinOps.GetNumberBones and skinOps.GetBoneName
Hi,
there is no such function in Max, so I wrote this script :
You shouldn't have bones with the same name, it will be confusing for any script. So, the solution is to rename these or at least rename the first bone of your hierarchy and search inside this particuliar hierarchy.