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: 

Playing a take in realtime and then doing something on every frame with python?

0 REPLIES 0
Reply
Message 1 of 1
brian1_nc
196 Views, 0 Replies

Playing a take in realtime and then doing something on every frame with python?

Ok, so I'm streaming some data into MB in realtime from a mocap system. There is an animation file already loaded in MB. I would like to hit play and then record the streaming data. But for starters, I just want to play the file and then print each frame number as it goes through the time bar in realtime. Framerate is 30 fps. So I know how to start play with python:


lPlayerControl = FBPlayerControl()
lPlayerControl.Play()


and I know how to get the current frame:


print FBSystem().LocalTime.GetTimeString()


but I'm not sure what to do next. I have tried a loop with no success. I know how to get the start and end frame in the timebar, but how do I print current frame numbers in realtime as the take is playing?

thanks,
Brian
MotionBuilder 7.5 thru ...
3dsMax 2.5 thru ...
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