Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for Grid Block Movement

  • Expression for Grid Block Movement

    Posted by Ej Hassenfratz on March 7, 2008 at 7:01 pm

    Here’s what I’m trying to accomplish.

    Picture a grid of rectangles with some of the rectangles in the grid missing. I would like the rectangles to move kind of like an LED watch where the block is in one spot but then moves to another point, but only so its lined up horizontally and vertically with the grid. So kinda like a tic tac toe board where a square alternates randomly in each block, only for what im doing, it’s a very big box with lots of blocks.

    Is there an expression to do this?

    ————————–

    ej.hassenfratz
    senior.graphic.designer
    wjla-nc8/eyedesyn.com
    washington.dc

    Filip Vandueren replied 18 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    March 8, 2008 at 7:07 am

    Can you give a bit more info:

    Do the boxes actually slide from one position to the next like a sliding puzzle, or do they just appear/disappear ?

    Maybe you can just line them up by hand using the align/distribute tools and apply a simple expression to the opacity so they blink on/off ?

    something like:

    posterizeTime(2);
    random(100)>10 ? 100 : 0;

    This will behave like this: twice per second there’s a 10% chance a block will be switched off.

  • Filip Vandueren

    March 8, 2008 at 7:12 am

    I forgot to mention:

    https://www.motionscript.com/mastering-expressions/random-3.html

    check out Dan’s site if you want the motion of the blocks to be constrained to the grid, he has an expression that does just that.

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