Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for position in many layers

  • Expression for position in many layers

    Posted by Graham on May 9, 2005 at 4:53 pm

    I have 100 layers of logos that I am animating flying through 3d space. They will come together to form a word on screen. I will build the final word position first and then would like to use an expression to vary each layers x, y and z space apart from each other so I can animate the camera to fly through. The x and y position would vary slightly and the z space would vary greatly.

    The end product will be a camera flying through many objects, the camera suddenly stops and pulls out very fast to see the objects come together and form the word.

    I am greatful for any help.

    Thanks,

    Graham

    Dan Ebberts replied 21 years ago 3 Members · 8 Replies
  • 8 Replies
  • Dan Ebberts

    May 9, 2005 at 5:46 pm

    To get it to line up right, it seems like the layers that are farther away from the camera are going to have to be larger, is that what you had in mind?

    Dan

  • Mike Clasby

    May 9, 2005 at 6:02 pm

    This might do it for you:

    Paul Tuersley
    Date: Aug 6, 2004 at 17:28 gmt
    Subject: Re: Distributing alot of layers randomly in 3D space.

    https://www.creativecow.net/forum/read_post.php?postid=109178809525274&forumid=2&highlight=random%2C%2B%2Cslider&archive=_2004|5|4

  • Mike Clasby

    May 9, 2005 at 6:04 pm

    Opps, I was busy tracking this down and didn’t see Dan was on the job.

  • Graham

    May 9, 2005 at 6:42 pm

    Hi Dan:

    The logos are going to come in like a starfield. I plan on spreading the logos out in Z space and then running the camera through that Z space to make appear to be flying by.

  • Dan Ebberts

    May 9, 2005 at 7:50 pm

    I understand that part, but the other part:

    “… the camera suddenly stops and pulls out very fast to see the objects come together and form the word.”

    That implies that there is some position in 3D space where you could put the camera and all the z-separated layers would appear to line up and form the word. If that’s the case, it would seem like the ones farther away from that spot would have to be larger.

    In any case, I would think the easiest thing to do would be to put the camera in its final position and arrange the layers in the positions that make the final shot work. Then create your camera fly-through and have it end up at the predefined spot. Or am I missing something?

    Dan

  • Graham

    May 9, 2005 at 9:08 pm

    Thanks Dan, you are right on the mark. I have build the end shot first.

    I have figured a few things out via the responses and maybe could ask a more direct question.

    Is there a way that I can change the Z space in my 100 layers incrementally via an expression instead of keying in the data? Another words have layer 1 at 100, 2 at 200, 3 at 300 etc. On various pre-comps I need to alter the Z space by various incremental amounts. I am guessing that I can’t as I would have to input the expressions on each layer anyway?

    Thanks again.

    G

  • Graham

    May 9, 2005 at 9:09 pm

    Thanks Paul, this was most informative.

  • Dan Ebberts

    May 9, 2005 at 9:32 pm

    You can probably create an auto z-positioning that depends on the layer index and/or the comp name. Simple example of a position expression:

    value + [0,0,index*100]

    which would move Layer 1 back 100 in the z direction (leaving x and y untouched), Layer 2 back 200, etc.

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy