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

  • Flow field expression

    Posted by Rogier Hendriks on November 14, 2024 at 3:22 pm

    Hi!

    I have been looking for an expression or maybe even a plugin that can generate a flow field like this: https://www.youtube.com/watch?v=VYh9-kZ8mvY

    I was thinking of a rotation based expression (target) linked to a turbulent noise filter or something?

    Thanks!

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Dan Ebberts
    replied 4 weeks ago
    2 Members · 1 Reply
  • 1 Reply
  • 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