# AE ENHANCERS

Expressions/Scripts/Presets
 It is currently Sun May 26, 2013 1:26 am

 All times are UTC - 8 hours [ DST ]

 Page 1 of 1 [ 4 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: layer always facing the groundPosted: Thu Aug 19, 2010 11:07 am

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 .
M

Top

 Post subject: Re: layer always facing the groundPosted: Thu Aug 19, 2010 11:25 am

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

 Post subject: Re: layer always facing the groundPosted: Thu Aug 19, 2010 1:33 pm

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

 Post subject: Re: layer always facing the groundPosted: Thu Aug 19, 2010 4:59 pm

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

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 4 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 forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ Announcements    Announcements Expressions    Expressions Library    Expressions Tutorials    Expression Discussion Scripts    General Scripts Library    Script Tutorials    Scripts Discussion    Script requests User Scripts    Paul Tuersley's Scripts    Impudent 1's Scripts Animation Presets    Animation presets Library