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

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

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

Post 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).
User avatar
Rai López
Posts: 2228
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post 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...
...
User avatar
Fazek
Posts: 246
Joined: Thu Apr 13, 2006 1:37 pm
Location: Hungary
Contact:

Post by Fazek »

Perthaps you can guess some of the interpolation modes if you check the channel values between the keys...
- - - Fazek
Post Reply