FORUMS: list search recent posts

Moving points in a row like humans forming a queue

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Yves Bischoff
Moving points in a row like humans forming a queue
on Apr 13, 2015 at 1:02:33 pm

I have two rows of small circles across a comp and I'm trying to figure out a way to make them behave like they are queuing. That means that I need to create an expression that moves the first circle in the line in one direction at random intervals but with a fixed distance and make the next circles in the line follow the first one but with a delay that also varies.

I have looked at some of Dan Ebberts random motion expressions but could so far not get to a point where I can just get one circle move only in let's say positive x at random intervals.

This is where I'm stuck at the moment.
It only moves the circle left and right but how do I have to modify this to achieve the effect that I want?

Also, as a bonus each of the circles would need a subtle wiggle on them to make it feel more natural.

I'm kind of stuck at the moment so I'm happy about anything to point me in the right direction.. thank you!

segMin = .25; //minimum segment duration
segMax = 1; //maximum segment duration
minVal = [500, 0];
maxVal = [500, 1000];

seedRandom(index,true);
segDur = random(segMin, segMax);
seed = Math.floor(time/segDur);
segStart = seed*segDur;
seedRandom(seed,true);
startVal = random(minVal,maxVal);
seedRandom(seed+1,true);
endVal = random(minVal,maxVal);
ease(time,segStart,segStart + segDur, startVal, endVal);


Return to posts index

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