MotionBuilder Forum
Welcome to Autodesk’s MotionBuilder Forums. Share your knowledge, ask questions, and explore popular MotionBuilder topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

import custom-format data into scene

0 REPLIES 0
Reply
Message 1 of 1
spark
193 Views, 0 Replies

import custom-format data into scene

I have a scene with a skinned mesh. No actor, no animation data on the mesh.

I want to load a custom data file and have the character move about.

The format is similar to BVH - one part to describe the hierarchy, one part of data.

What's the most efficient way? I imagine I may end up having to use the SDK for speed's sake, but I wanted to give python a shot, first.

Assume that the data from the file is loaded in memory and is accessed in a sensible way, e.g.

Data.LeftArm.RotateX = lcl RotateX value at frame 0
Data.LeftArm.RotateY = lcl RotateX value at frame 1
...
Data.RightAnkle.Translate = lcl Translate value at frame 0
...

So I'm thinking I'd have to loop thru each frame, then for each bone, find its Translate/Rotate/Scale's AnimationNode's XYZ AnimationNode's FCurve, do a KeyAdd and set the value from Data.LeftArm.RotateX?

Sounds rather easy, but a bit cumbersome and slow. I guess I can't set the FCurve to some array of data?
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report