Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Equation Question

  • Posted by Jacob Roth on March 20, 2018 at 2:46 am

    I have a circle shape layer rigged on a slider to grow from scale 0-100, and then divide into n^2 circles. I want to keep the returned grid of circles in the center of the comp, but I don’t know what the equation is for the x position.

    Anybody know what the question marks should be?

    n = thisComp.layer(“Control”).effect(“Slider Control”)(“Slider”);
    if (n <= 1){
    [960,540];
    }else{
    [???????,540/Math.round(n)];
    }

    Jacob Roth replied 8 years, 4 months ago 1 Member · 1 Reply
  • 1 Reply
  • Jacob Roth

    March 20, 2018 at 3:30 am

    Ok, I was making it too hard on myself. I made the comp a square instead of 1920X1080 and that fixed the problem.

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