Help writing script to rotate layer on Y-Axis
My background is a database programmer turned animator and now I’m delving into Expressions in After Effects. Been doing some scripting in Houdini.
Things work differently in these timeline based applications scripting wise. I’m assuming the script is executed on every frame. That being said, I’m having difficulty trying to accomplish a rotate task.
I have a 3D layer where I want to rotate the layer on the Y-Axis, but then while it’s rotating, I want to ‘spin’ it 360 degrees every x-number of seconds.
I have it slowly rotating from let’s say -35 to 35 degrees over 30 seconds. But let’s say every 3 seconds during that 30 seconds, I want to start where it is currently, spin it 360 degrees, and then continue with the slower rotation.
I know how to use linear() and ease() but not sure how to logically accomplish this not fully understanding how to set it up.