[ edit: don’t know how to delete my post, I’ve figured out that I can use Math.pow(value, exponent) ]
Both are interesting solutions. I have a similar but different question. I’m trying to write something exponential and want to use a for loop, but I’m getting stuck. In the following example R is a slider with a value around 1.2 and x is the power I want R multiplied to. This is then multiplied with the Y value to get an exponential curve of dots.
R = thisComp.layer(“settings”).effect(“R”)(“Slider”);
x = 13;
for (i=1; i < x; i++){R == R * R};
[value[0], value[1] * R];
R is remaining at the first value, not being multiplied by 13 times. Honestly, I don’t have a firm grasp on for loops. Alternatively is there an expression for R to the power X?
Thanks