[Closed] Max script for export mesh and bone data
Hi guys. I’m new with 3DMax. I want to make a script for export mesh and bone data. For the mesh part, I have seen some tutorials, and it seems easy to do, but, I cannot find a about how to export bones. Is there a way to access bone data in maxscript? (position, rotation) bone transformations for diferent animation frames, and how they influence each vertex.
Thanks
Check out skinops in the maxscript help. All the commands you’ll need to get the vertex weight information should be there.
Bone data is easy. bone.position, bone.rotation, bone.scale. or bone.transform if you want the matrix. If you are using controllers instead of directly controlling the bones, you’ll need to grab your key info from your controllers. Each pos\rot\scale controller has a “keys” property that returns an array of key frame times and depending on the controller type a value.
$.position.controller.keys would return an array of keys for the position controller of the selected object.
– Hope this helps
– Alex