AE ENHANCERS

Expressions/Scripts/Presets
It is currently Fri May 24, 2013 5:57 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: layer always facing the ground
PostPosted: Thu Aug 19, 2010 11:07 am 
Offline

Joined: Tue Aug 17, 2010 1:57 am
Posts: 2
Hi, i need a little help on i guess a simple expression,
how can i make a 3d layer always being parallel to the ground iven if that layer is parented to another 3d layer wich is rotating in x and z .
thanks for your kind help.
M


Top
 Profile  
 
 Post subject: Re: layer always facing the ground
PostPosted: Thu Aug 19, 2010 11:25 am 
Offline

Joined: Sat Jun 26, 2004 10:01 am
Posts: 298
Location: Folsom, CA
I'm sure there's a way to do it with 3D rotation matrices, but it's probably messy. Do you really need it to be parented to the other layer? How about if you had a position expression that always keeps the layer at the same relative position. Even easier, possibly, would be to parent a null to the rotating layer, then just have your flat layer track the null's position without being affected by the rotation of the parent?

Dan

_________________
http://www.motionscript.com


Top
 Profile  
 
 Post subject: Re: layer always facing the ground
PostPosted: Thu Aug 19, 2010 1:33 pm 
Offline

Joined: Tue Aug 17, 2010 1:57 am
Posts: 2
Thanks for your reply i have tryed your solution, linking the parented nul object with to the position of my layer but when theire is a movement my layer dont even move with the my setup??!!..
an other solution would be for my to keep parallel to layer creating a nul object out of my chain but i dont know how i could write that expression. if any body knows how to
M


Top
 Profile  
 
 Post subject: Re: layer always facing the ground
PostPosted: Thu Aug 19, 2010 4:59 pm 
Offline

Joined: Sat Jun 26, 2004 10:01 am
Posts: 298
Location: Folsom, CA
>when theire is a movement my layer dont even move with the my setup

The expression linking the non-rotating layer to the null's position should look like this:

Code:
L = thisComp.layer("Null 1");
L.toWorld(L.anchorPoint)



Dan

_________________
http://www.motionscript.com


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] 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