Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Creating Computer Font Type Numbers

  • Creating Computer Font Type Numbers

    Posted by Dorian Weber on February 1, 2014 at 5:26 am

    I need to fill a screen with a computer font consisting of 0 and 1 only. The numbers should be random and keep changing to 1 and 0 only (like running 010111000101001) etc. If I use effects>numbers, I can not find a way to input my own set of numbers and to have them changed to random 0s and 1s.
    What would be the most simple way to do that?

    Thank you.

    Dorian Weber replied 12 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Walter Soyka

    February 1, 2014 at 5:37 pm

    I’ve done this with a few sliders and an expression. Here’s an FFX preset you can use on a text layer, or an AEP project with a layer already set up to examine.

    7081_keenrandombinary.ffx.zip

    7082_randombinarycs6.aep.zip

    This lets you specify the size of the block in rows and columns, as well as the frame rate for how often the block will be refreshed. It works best with a fixed-width font like Courier.

    Alternately, here are the instructions for doing it yourself:

    Create a text layer. Add three slider control effects to the text layer and name them columns, rows and frameRate.

    Twirl open the text layer and alt-click the source stopwatch. Enter the following expression:
    // use sliders as variables for column, row, and frameRate
    c = effect("columns")("Slider");
    r = effect("rows")("Slider");
    posterizeTime(effect("frameRate")("Slider"));

    // initialize the string we'll be using
    s = '';

    // outer loop for rows, inner loop for columns.
    // add random zeros and ones through the duration of a line, then add a newline
    for (i = 0; i < r; i++) {
    for (j = 0; j < c; j++) {
    s += parseInt(Math.round(random()));
    }
    s += "\n";
    }

    s;

    Walter Soyka
    Principal & Designer at Keen Live
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    RenderBreak Blog – What I’m thinking when my workstation’s thinking
    Creative Cow Forum Host: Live & Stage Events

  • Dorian Weber

    February 2, 2014 at 11:07 am

    Thank you very much for your great suggestion!
    Will try this next week.

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