ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Equation Question

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jacob Roth
Equation Question
on Mar 20, 2018 at 2:46:31 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)];
}


Return to posts index

Jacob Roth
Re: Equation Question
on Mar 20, 2018 at 3:30:01 am

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]