Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects CARDDANCE – rows and collums

  • CARDDANCE – rows and collums

    Posted by Nils Palmen on February 2, 2006 at 8:56 pm

    hi

    i’m trying to create a digital rain effect using carddance in AE. i’m only using ONE’s and ZERO’s (1110001110001101…) in an uneven number and place – so just randomly scattered. carddance needs to have a specific number of rows and collums to match the CUT grid – so it doesn’t cut through the numbers you typed. I found a sort of tutorial by ayato on his website. (https://www.ayatoweb.com/ae_tips_e/ae49_e.html) where he explains how to make collums and rows using illustrator. but i just can’t do it the way he tells it. the project seems to be to big to render or i just can’t type anything in the little box.

    so what is the best way to create a number of rows and collums in illustrator to use it with the carddance effect or how can i make in AE a layer with 100 / 100 rows with all 1’s and 0’s randomly laced arround? or any other way to create a file with rows and collums to use in carddance??

    thanks nills .. . .

    (does anyone have another digital rain tutorial he knows of?)

    Nils Palmen replied 20 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Mike Clasby

    February 3, 2006 at 1:50 am

    Hey, these questions are frying my brain, but here’s one way. It’s from Dan the-expression-man’s tut, “Exploring Expressions in AE 6”.

    https://www.creativecow.net/articles/ebberts_dan/ae6_exp/index2.html

    Make a comp 1000×1000 (You said you wanted 100×100 grid of 1’s and 0’s). With the Text Tool, put a “1” on the page. I used Courier (T1) medium, size 10 pixels,leading at 10 pix (Character Palette), tracking at 370,
    and positioned the layer at x=2.5, y=7.5 (these worked for me but you can adjust to get the grid to fit the comp evenly. Since you said you wanted a 100×100 grid of 1’s and 0’s,
    add this expression to the “Source Text” property (twill down under text):

    numRows = 100;
    numChars = 100;
    holdFrames = 5;

    seed = Math.floor(time/(holdFrames*thisComp.frameDuration));
    seedRandom(seed,true);

    s = “”;
    j = 0;
    while(j < numRows){ k = 0; while (k < numChars){ c = Math.floor(random(48,50)); if (c > 57) c += 7;
    s += String.fromCharCode(c);
    k += 1;
    }
    s += “\r”;
    j += 1;
    }
    s

    You should have a grid 100×100 0f random 1,0.
    You can adjust the position and spacing of the grid of numbers by selecting the text layer, then adjust:
    Position , and in the Character Palette: leading and tracking of the text.

    I’d Save Frame as Photoshop layer and import that into the comp, so AE doesn’t have
    to run through the expression every time when you through Card Dance on top of it.
    If you don’t change it into a PS pic, the numbers will change every 5 frames, see the
    holdFrames = 5;
    in the expression above. You can adjust this to taste, if you want changing numbers.

    Like I said look at his tut to noodle it out.

  • Mike Clasby

    February 3, 2006 at 10:12 am

    OK, it’s a little easier to line up the grid of 10,000 (100×100) 1’s and 0’s, if you create a 10×10 Colored solid (I used blue). Move it below the Text layer, dup it. Change one position to 5,5 and the other to 995,995. Now you have a box in opposite corners of your 1000×1000 comp.

    Like I said before, with Courier (T1), Medium at 1o pix font size, you need a leading of 10 and a tracking of 400 (I think I said 370 earlier, but 400 seems better). Anyway you can see when you get it aligned properly because there will be a number in the middle of the blue square on the upper left and the lower bottom. If they’re no aligned, change the leading/tracking until they do And you need to select the text layer when you make changes). Changing the font, means you need differnet leading and tracking to make things line up. Very doable, just takes a little tweaking. Hope this works for you.

    Like I said before, this is a hack off Dan, and I can see a line that’s not necessary, the line that says:
    if (c > 57) c += 7;

    There’s probably more that could be cleaned up, but this works.

    I tried a different method of Dan’s, a hack of his grid comp that defined the Horz and Vert Space in his tut, “noise()

  • Nils Palmen

    February 4, 2006 at 10:06 am

    thanks for entering the dangerous zone mike 😉 hope the brain still working – i’ll fry mine now …

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