Forum Replies Created

  • Mala Adolescenza

    November 28, 2015 at 6:13 am in reply to: Sincronize randoms for time, scale and position

    First thing, I’ll like to thank both of you.

    Second, I’ve gone with Kalle solution ’cause is more step-by-step and I’m new to AE expressions but there are some problems, triying to apply that expression to Cursor results in “expression result must be of dimension 2, not 1, error occured at line 0”. While, not changing my original working Cursor expression that was:

    minDuration = 0.3;
    maxDuration = 0.9;
    minVal = inPoint;
    maxVal = outPoint - maxDuration;

    tEnd = 0;
    n = 0;
    seedRandom(n, true);
    preRun = random(maxDuration);
    while (time + preRun >= tEnd){
    n++;
    seedRandom(n, true);
    dur = random(minDuration, maxDuration);
    tEnd += dur;
    }
    t = time + preRun - (tEnd - dur);
    n += 9973;
    seedRandom(n, true);
    startVal = random(minVal, maxVal);

    and using the others expression you suggested, in particular for uniform scale and position, they result in “index 1 out of range, expression disabled”.

    Thanks again for your time,
    bye.

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