Scripting : How to get the interpolation values for a cycle?
Posted: Mon Aug 01, 2022 5:54 am
Hello, I have a question about the class:
AnimChannel:GetKeyInterp(when, interp).
I want to get the val1 and val2
of a loop and store it
the absolute value and relative value
Is it possible to get those values?
I was trying something like this :
But it does not work
Does not print the correct values
If someone could tell me how to do that ? Thanks
AnimChannel:GetKeyInterp(when, interp).
I want to get the val1 and val2
of a loop and store it
the absolute value and relative value
Is it possible to get those values?
I was trying something like this :
Code: Select all
local layer = moho.layer
local interp = MOHO.InterpSetting:new_local()
layer.fTranslation:GetKeyInterpMode(moho.layerFrame,interp)
interp.interpMode = MOHO.INTERP_CYCLE
print("Relative value: " ..interp.val1)
print("Absolute value: " ..interp.val2)
But it does not work
Does not print the correct values
If someone could tell me how to do that ? Thanks