Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Maintaining even distance between layers, adjusting relative position

  • Willie Frazier

    February 25, 2015 at 11:23 pm

    Thanks Dan, that killed the errors, and it functions now,

    However, what it seems to be doing is moving all the remaining text down collectively, though the spacing between the groups remains consistent. What I need it to do is increase the spacing in such a way that the content still fills the space, and the spacing between the groups increases evenly to facilitate that. I feel like I’m very close, but there is still one piece of the puzzle remaining. I have to hop into a production meeting, but if it will help, I’ll post screen shots of what is happening when I return in about 30 minutes.

  • Willie Frazier

    February 25, 2015 at 11:59 pm

    Right, so I realized what I needed to do there which is essentially enter higher values by a factor of 50 for each ‘spacing’ value in the expression on every layer to which it is applied, so that’s working.

    One last thing that would make this complete would be to involve the dividing lines (not pictured in the previous screenshot). These dividers are essentially a horizontal 3px stroke in a shape layer with a repeater.

    It feels like some iterate of this expression could also change the number of ‘copies’ the repeater is using, as well as the repeater’s ‘position’ value.

    Is this possible?

  • Kevin Camp

    February 26, 2015 at 6:47 pm

    [Willie Frazier] “so I realized what I needed to do there which is essentially enter higher values by a factor of 50 for each ‘spacing’ value in the expression on every layer to which it is applied, so that’s working”

    oops… that would be needed since i had taken out the look-at-the-layer-above-it portion… sorry for over looking that (and for the syntax issue earlier)

    as far as getting the checkboxes to control the lines, yes you should be able to link that together too.

    from how you described it, i think you’ll need expressions for both the ‘copies’ and ‘repeater>position’ properties.

    for copies try this:
    Line5 = thisComp.layer("Content Control").effect("Stat 5 On/Off")("Checkbox");
    Line6 = thisComp.layer("Content Control").effect("Stat 6 On/Off")("Checkbox");

    if (Line6 == false && Line5 == false) 4;
    else if (Line6 == false && Line5 == true) 5;
    else 6;

    for the transform: repeater>position property try this:
    Line5 = thisComp.layer("Content Control").effect("Stat 5 On/Off")("Checkbox");
    Line6 = thisComp.layer("Content Control").effect("Stat 6 On/Off")("Checkbox");

    SixLnSpacing = 0;
    FiveLnSpacing = 50;
    FourLnSpacing = 100;

    if (Line6 == false && Line5 == false) y = FourLnSpacing;
    else if (Line6 == false && Line5 == true) y = FiveLnSpacing;
    else y = SixLnSpacing;

    value + [0,y]
    Just modify the spacing values as needed.

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Willie Frazier

    February 26, 2015 at 7:12 pm

    Excellent, it’s working wonderfully now. Many, many thanks.

Page 2 of 2

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