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 / FCurve leap recognizer
  RSS 2.0 ATOM  

FCurve leap recognizer
Rate this thread
 
31348
 
Permlink of this thread  
avatar
  • cwikdahl
  • Posted: 24 June 2009 01:24 AM
  • Location: Sweden
  • Total Posts: 18
  • Joined: 03 February 2007 04:16 AM

Hi,

I need a function to find leaps/jumps in a curve and change those keys to constant. I’m thinking of comparing key by key with the previous 5-10 keys and if I find a relatively large leap in values, the previous key is set to constant.

Sounds like the right way? Anyone done something similar?

/Claes



Replies: 0
avatar

Is the automatic interpolation not doing what you want?

~Kristine



KRISTINE MIDDLEMISS | SENIOR DEVELOPER CONSULTANT
AUTODESK DEVELOPER NETWORK Media & Entertainment
http://www.autodesk.com/joinadn

Replies: 0
avatar
  • cwikdahl
  • Posted: 14 September 2009 07:49 PM

"Automatic interpolation”?

The function is need for a camera switcher. I don’t want any interpolation where there’s a camera switch.

I have done a version of what i described above, and it works pretty good :)



Replies: 0
avatar

Sorry, I was confusing ‘automatic’ isn’t the right term, I just meant it should interpolate between key gaps. but I didn’t realize you were using the camera switcher.

Glad to hear you have it working!



KRISTINE MIDDLEMISS | SENIOR DEVELOPER CONSULTANT
AUTODESK DEVELOPER NETWORK Media & Entertainment
http://www.autodesk.com/joinadn

Replies: 0
avatar
  • _mg_
  • Posted: 16 September 2009 03:58 AM

Why not query the switcher’s index channel to find out where the jumps occur?



Replies: 0
avatar
  • cwikdahl
  • Posted: 18 September 2009 03:23 AM

_mg_ 16 September 2009 10:58 AM

Why not query the switcher’s index channel to find out where the jumps occur?

That’s a good idea! (I’d rather call you smart than me stupid ;) )



Replies: 0