-
How to loopOut(“pingpong”) with a variable
hey guys
i’m new to expressions in after effects. but i know how to use loopOut() by creating the keyframes i need. what i want to do now is to apply a loop in the X scale which is already changing throughout my animation.here is the thing: i have an object that changes its size, growing proportionally in the X and Y, but sometimes the X is a negative number (so the image flips).
while it does that, i’d also like it to changes its X size back and forth in a loop.
adding 3, going back to its actual size, and then subtracting 3.
for example: (-97, 100) > (-100,100) > (-103,100) > (-100,100) > (-97,100) and so forththat being said, i need to the X value to be a variable. so it will loop the X scale automatically according to the X,Y scale animation i have already done manually with keyframes. (and if the value on X is negative, it has to stay negative)
i do have experience with coding but not with javascript.
idk what to do. any ideas?thanks xoxo