[Closed] Inverting an animtion curve along a single axis
I want to invert an animation curve along a single axis, but I;m not sure how best to approach it.
all I can come up with is :
iterate through obj.position.controller.keys
and with animate on invert each value on the axis in question.
it feels a little ham fisted, is there no more elegant animation curve manipulation in max script?
Well, you don’t have to have animate on if you’re changing a key.value directly. But it’s more likely that calculating your own euler angles would be a less elegant solution…
What is your usage scenario? Do you have to deal with only position or also rotation? Is the axis world X/Y/Z, or can it be at an arbitrary angle? Or maybe by axis do you just mean 2D: a certain value to flip the curve values around?
we have some simple node motion in our game that is being mirrored in-engine.
I want o experiment with mirroring the animation curves before export to compensate.
I was just hoping that Max script had some concept of animation Curves as a class unto itself. Doesn’t look like it though.