AnimChannel:GetKeyInterp(when, interpMode, val1, val2)

Version added: before 9.5
Gets basic information about a key

Arguments:

Name Type Description Default Ver
when int32 < 9.5
interpMode int32 < 9.5
val1 real < 9.5
val2 real < 9.5

Return value:

void The function appears to return interpMode, val1, val2
This returns the interpolation mode and the two "value" fields for a key at a given frame.

It is called with four arguments. "When" needs to be specified as the input.

interpMode, val1 and val2 need to be initialised with a numeric value (0 is appropriate in all cases). If these three arguments are not initialised, Moho will crash.

It appears that (Moho 14) these three fields are not overwritten. The following seems to work :

interpMode, val1, val2 = AnimChannel:GetKeyInterp(when, interpMode, val1, val2)




<< Back to AnimChannel