ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Parenting Position X or Y to Rotate

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
mostafa km
Parenting Position X or Y to Rotate
on Apr 5, 2017 at 4:09:16 am

Hello

i need to parent position X value to rotate of other layer ?

example : when rotate the the (number 1 ) other layer position X (number 2) move only the x position



Return to posts index

Topher Blair
Re: Parenting Position X or Y to Rotate
on Apr 5, 2017 at 10:41:17 pm

Position needs to be listed as an array [x,y]. So if you want to parent the X position to rotate, enter the code:
temp = thisComp.layer("layerName").transform.rotation;
[temp, y]
where "y" is whatever the y position already was.

temp = thisComp.layer("layerName").transform.rotation;
[temp, y]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]