Page 1 of 1

How do I read the interpolation mode of an anim channel?

Posted: Sat Dec 16, 2006 3:15 pm
by Rasheed
While there are two functions to set the interpolation of an animation channel, there seems to be no function to get the interpolation mode.

Code: Select all

void SetKeyInterp(when, interpMode, val1, val2)
and

Code: Select all

void SetKeyInterpByID(id, interpMode, val1, val2)
but no

Code: Select all

(interpMode, val1, val2) = GetInterp(when)
Has anyone found a way around this for copying keys from one switch layer into another?

This would be nice if you want to switch several switch layers, controlled by a single master switch layer. I can set the keys in the slaves, but not their interpolation values (in particular, cycle interpolation).

Posted: Sun Dec 17, 2006 1:18 am
by Rai López
Remember that if Macton didn't be able to do it for his "Copy Keyframe Scripts" is cause it's not possible to do... Lots of times we have asked for this logical Lua addition to LM without succes (I don't know why...) until now, a pity cause it would open a lot of doors, we'll see in the future...

Posted: Wed Dec 20, 2006 9:02 am
by Fazek
Perthaps you can guess some of the interpolation modes if you check the channel values between the keys...