Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Flow field expression

  • Dan Ebberts

    November 14, 2024 at 5:33 pm

    This application is perfect for noise(), the expressions built-in Perlin noise field generator. I’d start with a rotation expression like this:

    dDiv = 1000; // distance divider
    tDiv = 2; // time divider
    maxAngle = 180; // maximum angle (+ or -)
    r = noise([position[0]/dDiv,position[1]/dDiv,time/tDiv])*maxAngle;
    value + r

    For reference, I used this position expression to position a grid of identical 100×100 layers with anchor point centered:

    hSpace = 100; // distance between columns
    vSpace = 100; // distance between rows
    nCols = Math.round(thisComp.width/hSpace);
    origin = [hSpace,vSpace]/2;
    myCol = (index-1)%nCols;
    myRow = Math.floor((index-1)/nCols);
    origin + [myCol*hSpace,myRow*vSpace];

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