Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Translate AE expression to Xpresso: bacteria random jumps

  • Translate AE expression to Xpresso: bacteria random jumps

    Posted by Corrado Carlevaro on July 31, 2010 at 10:57 am

    Hi,
    this is an After Effects expression to make an object jump in a random position at fixed intervals, kind of chaotic movements of bacteria seen with microscope, how would you translate it in Xpresso?
    Thanks in advance

    Corrado Carlevaro

    moveTime = .2;
    holdTime = 3;
    minDelta = [-2,-4,0];
    maxDelta = [2,-6,0];

    seg = Math.floor(time/(moveTime+holdTime));
    seedRandom(index,true);
    prevDelta = [0,0,0];
    for (i = 0; i < seg; i++) prevDelta += random(minDelta,maxDelta);
    delta = random(minDelta,maxDelta);
    t = time % (moveTime+holdTime);
    value + prevDelta + linear(t,holdTime,holdTime+moveTime,0,delta)

    Corrado Carlevaro replied 15 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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