-
Shifting position when parent layer is rotating
For a puppet head turn I would like the position of eyes/nose/mouth to shift 30 pixels horizontally when the parent layer (the head) rotates 10 degrees (Y Rotation). Is this possible with an expression?
I am playing around with
p = parent.transform.yRotation;
delta = p - p.valueAtTime(0);
value - delta*-.8
but it seems only to work when I parent the position to position. No luck with position to yRotation.Anyone knows of a straight forward expression for this?
Edit:
Actually thinking about it, it would even be nicer if it is independent of parenting. Just when a certain layer is rotating then the layer with the expression applied should move in yPosition.