AE ENHANCERS

Expressions/Scripts/Presets
It is currently Wed Oct 22, 2014 11:34 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: need script for offset position
PostPosted: Thu Nov 15, 2007 4:07 am 
Offline

Joined: Mon May 21, 2007 1:49 am
Posts: 3
Hi.

I want to change the position of one layer and the position of the other layer should follow them. But if I link the position the second layer jumps to the position of the first layer. I want to keep the position in an offset.

what I want to do:

I set up a character standing in front of a mirror. If he lift his arm the mirrored arm shall move as well. Independent of how far he is standing from the mirror.

Thanx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 15, 2007 4:34 am 
Offline

Joined: Mon May 21, 2007 1:49 am
Posts: 3
so far this works:


Quote:
thisComp.layer("arm_right").transform.position+temp = thisComp.layer("backview").transform.anchorPoint[0];


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 15, 2007 5:01 am 
Offline

Joined: Sat Jun 05, 2004 7:59 am
Posts: 698
Location: London, UK
I'm actually quite suprised that expression worked. It's ignoring the "temp =" bit which I'd expect to cause an error (temp is undefined), so you're expression is really:
Code:
thisComp.layer("arm_right").transform.position + thisComp.layer("backview").transform.anchorPoint[0];

So at the moment you're just adding arm_right position to backview anchor point. Couldn't you do what you're trying to do with parenting instead?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group