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® / Python / Python to interact with FCurves
  RSS 2.0 ATOM  

Python to interact with FCurves
Rate this thread
 
58485
 
Permlink of this thread  
avatar
  • Total Posts: 41
  • Joined: 02 September 2009 01:37 PM

Hello,

I was wondering if someone know if there is a way (and how complex is it) to select only one curve (depends on an assigned hotkey)of and object in the FCurves window and is willing to share it (or some pointers)?

To explain: let say I have an animation on a joint and in the FCurves window I want to select only the X translation axis keys; I would press on a hotkey, that is assigned to isolate the selection to that specific translate X curve, while drag selecting the key on the curve. (I know that there is option to isolate a specific curve but I was looking on a faster way).

I was also wondering if anyone know how to bind a key to the “Center the view about the current frame” button in the FCurves tab, I looked in the “bin\config\Keyboard” folder but couldn’t find a relevant command there?

Any input will be much appreciated!

Thanks!

P.S.
I’m kind of new in Python and MotionBuilder but I’m a fast learner.



Replies: 0
avatar
  • melvin3d
  • Posted: 31 July 2011 06:01 PM

Hey man ,
To frame a key selection is the same as frame selection in the viewport. Select a key or keys and hit “F” that should center your current selection single or multi.

To write a function that would find the attrs is not that hard… like translationX,Y,Z
Having that to update in FCurve editor is another story. Wish i could help but this sounds like tapping into API C++ ... :) ..not that smart . :)
Good luck.

Melvin3d



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

Thanks for your suggestion!

However this isn’t exactly what I was looking for, I’m not looking to focus on a selected key, I’m looking to focus the FCurve view on where the time marker is - exactly what the “Center the view about the current frame” button does but there isn’t a command I can find that relates to this so can bind a hot-key.

“C++”, every time I hear it, it keeps me wondering if it’s too late for me to seriously dive into it ; )

Thanks again!

Author: -=Ethan=-

Replied: 01 August 2011 09:04 AM