FORUMS: list search recent posts

Creating Computer Font Type Numbers

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dorian Weber
Creating Computer Font Type Numbers
on Feb 1, 2014 at 5:26:41 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.

Return to posts index

Walter Soyka
Re: Creating Computer Font Type Numbers
on Feb 1, 2014 at 5:37:50 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.

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");

// 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";


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

Return to posts index

Dorian Weber
Re: Creating Computer Font Type Numbers
on Feb 2, 2014 at 11:07:52 am

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

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved