Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

making copy of a parent follow the parent's position but in opposite x axis

Cow Forums : Adobe After Effects Expressions

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
making copy of a parent follow the parent's position but in opposite x axis
by yamir bhatt on Jun 9, 2009 at 2:44:22 pm

I am tring to create 2 objects starting to move from the sape position. but i only want to key frame one object. hopping the other object will follow its position but in opposite x axis. what is the siplest way to do this?

Respond to this post   •   Return to posts index

Re: making copy of a parent follow the parent's position but in opposite x axis
by Dan Ebberts on Jun 9, 2009 at 3:17:26 pm

A position expression like this should do it:

L = thisComp.layer("parent");

p0 = L.transform.position.valueAtTime(0);
p1 = L.transform.position;

[2*p0[0]-p1[0],p1[1]]



Dan





Respond to this post   •   Return to posts index

Re: making copy of a parent follow the parent's position but in opposite x axis
by yamir bhatt on Jun 9, 2009 at 3:28:47 pm

thanks that worked perfect. thanks

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]