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

Re: Video to ASCII effect

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


Re: Video to ASCII effect
by jporter313 on Oct 23, 2007 at 10:45:07 pm

Hey Kevin, thanks again for all your work on this. I tried doing it through this method, the problem is that it takes around 2000 of these single character layers to properly fill my work area. After Effects crashes around 1200 or so.

I also found this other technique:

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

It uses the expression:

target = thisComp.layer("layerToSample.mov");
samples = new Array();

var spacing = 10;
var w = target.width / spacing ;
var layerOrder = 1;
var h = 10 * layerOrder;

letters = " .,:!-+=;iot76x0s&8%#@$";

for(x= 0; x < w; x++){
samples[x] = target.sampleImage([x* spacing ,h],[spacing , spacing], false, time);
}

var string = '';

for(z = 0; z < samples.length; z++){
var y = Math.round((0.299 * samples[z][0] + 0.587 * samples[z][1] + 0.114* samples[z][2]) * 100)/ 4;
string = string + letters.substring(y,y + 1);

I applied this to the text field and it gives me an error: " Class "Layer" has no property or Method named "Target" " on line 5. I'm really new to After Effects scripting, so I don't know why it's giving me that error.

But I think this one is set up to replicate the whole grid rather than just a single character.


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...



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]