Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / Setting keys from matrix using FBPlayerControls Key()
  RSS 2.0 ATOM  

Setting keys from matrix using FBPlayerControls Key()
Rate this thread
 
36723
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 23
  • Joined: 30 October 2006 02:46 AM

Hi,

I’ve run into something I can’t seem to get to work. What I’ve got is loads of matrix data which I’d like to set on an object and set keyframes. I’ve looked into using FBPlayerControls Key() member, but it only seems to work on node.Translation or node.Rotation. What I’d like to see work is setting the node.Matrix attribute the same way I do the position or rotation. So I’m wondering if this is possible. If not, I’d have to choose another solution obviously. In that case my question is; How do I set keyframes from a matrix?

Any help greatly appreciated!

BR
mrK



Replies: 0
avatar
  • KxL
  • Posted: 17 November 2009 10:02 AM

There is no direct way to key matrix.
Also, remeber that FCurve is local data. Do you have local matrix or know how to compute it? If so, here I showed how to do opposite (conver FCurve to Matrix), you should be able to reverse it:
http://area.autodesk.com/for...ions-without-stepforward/

Cheers!

PS. Maybe there could be a hack to set Matrix and key candidate on model, but this would require evaluation of scene. You may want to try this too if you are working with global data.



Replies: 0




   
  Settings Choose Theme color: