Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Video to ASCII effect

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Video to ASCII effect
by jporter313 on Oct 25, 2007 at 11:11:27 pm

So i posted on the After Effects forum, and thought maybe it would be more apropriate to post here.

I'm trying to create an effect where I can take a video and replace it with ASCII characters.

Kevin Camp came up with this expression which works great, but only renders a single character per text field:

asciiArray = [" ","a","b","c","d","e","f","g","h","i","j"]; // enter characters to range from light to dark values
numCharacters = 10; // enter the total number of ascii characters entered in the array above
imageMap = thisComp.layer("Source Image").sampleImage([position[0], position[1]], [1, 1]);
a = Math.round(linear(imageMap[0], 0, numCharacters));
asciiArray[a]

I tried putting this on a text field and duplicating it in a grid, problem is that it takes a couple thousand layers (all running expressions) to fill the screen area with a sufficient number of ASCII characters and After Effects crashes long before I have enough.

I also found this page:

http://www.creative-workflow-hacks.com/2007/08/27/more-fun-with-sampleimage...

which contains an expression that works for one line of text, so I have fewer layers (I only have to duplicate it per the number of lines), but the problem is it doesn't regulate the width of the text field, so the changing width of the characters change the location of subsequent characters.

I'm really stuck and I've been struggling with this problem for days. Does anyone know how I can achieve this effect?


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Please post Expressions Code in the box below:


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]