Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Evenly distribute layers between 2 other layers

  • Evenly distribute layers between 2 other layers

    Posted by Riccardo Sinti on January 21, 2010 at 4:12 pm

    I would like to evenly distribute layers between two other layers so that when I move the layer on the left or right the layers between to two distribute themselves evenly ala animating tracking in type.
    I’m sure there is a post for this already but I can’t seem to find it.

    Thanks!

    Andy Engelkemier replied 16 years ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 21, 2010 at 4:30 pm

    This assumes all layers in the comp are participating. All layers will distribute themselves between the first layer and the last layer:

    n = thisComp.numLayers;
    if (n > 2){
    p1 = thisComp.layer(1).transform.position;
    p2 = thisComp.layer(n).transform.position;
    linear(index,1,n,p1,p2)
    }else{
    value
    }

    Dan

  • Andy Engelkemier

    April 30, 2010 at 1:13 pm

    it actually sounds like you were looking for what I’m looking for. It’s hard to find, and I have not yet.

    I don’t want to distribute the Contents of the layer. I want to distribute the actual layers themselves, ie. the in point of the layer.

    It seems all I can find with searching is how to distribute the content. Although, I did find that useful because I needed to distribute in 3D, which aftereffects couldn’t do without some special help of scripts.

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