Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / Key frame a camera object per frame while playing.
  RSS 2.0 ATOM  

Key frame a camera object per frame while playing.
Rate this thread
 
52934
 
Permlink of this thread  
avatar
  • Total Posts: 1
  • Joined: 03 March 2011 08:53 PM

I’m just getting into programming for Motion Builder, and I don’t have a grasp of how to set up some sort of event handling or triggers for when the playercontroller has reached a frame.

What I’m trying to do:  I have data feeding in from a live device.  The data provides movement data from a mocap stage for a camera (basically move a camera like object around live).  I have a motion builder camera thats parented to the live device object and it accepts the properties (basically it’s transforms and zoom). 

I’d like to be able to key this camera’s key group on each frame (basically simulating keying data while “live” ).

I can’t seem to find a way to throw an event per frame via FBSystem.  I’m starting to think I’m going to have to write a c++ plugin that hooks directly into the FBEvaluation, but I’m not sure yet.

Any ideas?

--Jordan



Replies: 1
/img/forum/dark/default_avatar.png

I would love to know how to do this as well.  Any tips would be awesome.

Author: melloajello

Replied: 20 September 2011 11:04 AM  
avatar
  • Tistatos
  • Posted: 28 September 2011 09:45 PM

I Think your best solution would be to create some sort of device that controls that camera so you can make it live and then hit the motionbuilder’s record button. Because asking Motionbuilder to do certain stuff at a specific frame, usually doesn’t work.

but you could perhaps see if you can do something with FBScene.OnChange ...



Replies: 0