FORUMS: list search recent posts

how to set an absolute position value on the position of a parented layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
leif falk
how to set an absolute position value on the position of a parented layer
on Jun 22, 2017 at 9:50:04 am
Last Edited By leif falk on Jun 22, 2017 at 10:38:26 am

Hi there

I have the absolute position in a comp like
abs_pos = [460,540];
and I want a parented layer have exact this position.
It must be really easy but I can´t figure it out. This on position doesnt´t work:

abs_pos = [460,540];
fromComp(abs_pos);

If you change the layers scale or rotation, the position shifts.
I am very thankful for any help..


Return to posts index

Dan Ebberts
Re: how to set an absolute position value on the position of a parented layer
on Jun 22, 2017 at 1:13:56 pm

Try this:

abs_pos = [460,540];
parent.fromComp(abs_pos);


Dan



Return to posts index

leif falk
Re: how to set an absolute position value on the position of a parented layer
on Jun 22, 2017 at 10:24:14 pm

nice, thats it, I need to Reference to the parent layer space, not to its own..
thanks so much..


Return to posts index

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