Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression help required

  • Expression help required

    Posted by Syed Iqbal on December 16, 2005 at 8:45 am

    Hi all
    Is there any way using expression that separate 70-80 3D layers in Z axis. The distance between each layer in Z axis should be around 320 pixels and I need this script to avoid manual placement of layers means every time when I run this expression, the layers should have another 320 pixels distance from each other as long as I do not go to the position twril and reset those Z axis values.

    Dan Ebberts replied 20 years, 8 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    December 16, 2005 at 2:11 pm

    I’m not sure exactly what you’re asking, but this position expression might help:

    offset = 320;
    value + [0,0,(index-1)*offset]

    Dan

  • Syed Iqbal

    December 17, 2005 at 5:37 am

    Thanks a lot sir. I will give it a try. But before I do that let me rephrase my query a bit differently.

    You create a new project. You bring 80 layers (3d) in your timeline. Now you are willing to move your camera in Z direction (depth) BUT before that what you have to do is to reorganize that stack of 80 layers so that they eye of the camera could see the content of all those 80 layes while moving forward in Z direction (depth). So if you try to set this spacing between layers, it is time taking and you need more control over precisness in spacing between 80 layers (I finally look for about more than 120 layers).

  • Syed Iqbal

    December 17, 2005 at 7:23 am

    Dear sir
    One more thing. I have tried to distinguish these two terms, expression and script. So what my objective is, I think is rather something which is more relevant to script and not expression. Because this is something that I want to do without hitting RAM Preview button to see the play back. This is sort of “ScaleSelectedLayers” thing, a script that we have in the default “SupportFiles/Scripts/Demo” folder that ships with AE software.

  • Dan Ebberts

    December 17, 2005 at 3:56 pm

    With the expression I mentioned before, the layers would position themselves in 3D space – you don’t need to run a ram preview to see it happen (assuming you’ve got the camera positioned correctly).

    You could do the same thing with a script. There would be a number of ways to set it up, but you could have it look for all the selected layers and position them in 3D space for you.

    For your application either method should work fine. I like expressions because I find them easier to write and debug, and when you change them you see the results immediately.

    Dan

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