FORUMS: list search recent posts

position breaks with parenting!

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Lukasz Pason
position breaks with parenting!
on Aug 2, 2013 at 4:40:14 am

Hi.
I've got what I hope is a noob question... I have circles that have effects from a solid parented to their positions. When I parent those circles to a null so that I can do a global rotation with them the effects on the solids break and the position linking turns up all wrong. What can i do?! All I have for expression is :

thisComp.layer("circle 3").transform.position


Return to posts index

Filip Vandueren
Re: position breaks with parenting!
on Aug 3, 2013 at 10:30:46 pm

The simplest solution (if possible) is to also parent "circle 3" to the same null.

Positions of a child are relative to it's parent.
The value that you're retrieving from "circle 3" is relative to it's parent (if it has one).

While it is possible to recalculate the position-value through expression, but then why would you parent them ?
If you only way multiple layers to have the same rotation as a null, without it affecting their position or scale, you should not parent, but use an expression for their rotation like:

thisComp.layer("Null 1").transform.rotation;

you could also use:

thisComp.layer("Null 1").transform.rotation + value;

This will add the layer's own rotation so you can have some variation



Return to posts index

Darby Edelen
Re: position breaks with parenting!
on Aug 3, 2013 at 10:37:16 pm

Good God! Is Filip back?!

Welcome back Filip :-)

Darby Edelen


Return to posts index


Filip Vandueren
Re: position breaks with parenting!
on Aug 3, 2013 at 10:59:31 pm

That made my day/night ;-)



Return to posts index

Lukasz Pason
Re: position breaks with parenting!
on Aug 3, 2013 at 11:01:02 pm

Thanks guys! I ended up doing the easy thing... Pre-Compose. Rotate. =)


Return to posts index

Darby Edelen
Re: position breaks with parenting!
on Aug 3, 2013 at 10:34:52 pm

Try this:


l = thisComp.layer("circle 3");
l.toWorld(l.anchorPoint);


Darby Edelen


Return to posts index

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