-
animate layer position with angle control
Hi all,
I’m animating 2d characters performing a dance. For this I figured it would be nice if I could use the angle control to animate the layer position (e.g. make the body look as if it turns by moving the arms & legs).
Problem is that the angle control keeps counting up in the ..x degrees area. I tried to solve this as follows, but this didn’t do the job:
slider = thisComp.layer("jurk rotation").effect("Angle Control")("Angle");if (slider>360)
slider=slider%360else if (slider<90)
linear(slider,0,90,0,15)else if (slider<180)
linear(slider,90,180,15,0)else if (slider<270)
linear(slider,180,270,0,15)else
linear(slider,270,360,15,0)
Can someone please help?
Thanks a million!
Moniek