ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

scan a image pixel by pixel

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Toni Perelló
scan a image pixel by pixel
on Nov 4, 2017 at 4:49:13 pm

Hello, Im trying to move an image pixel by pixel so I can export squares of it as png, I need to move the image from x=160 to x=-119 and then go back to x=160 but y +1 to pass to the next line
I have this so far so I can export the first line

but how i make it move again to the left and add a pixel movement in y axis everytime I complete a line?

Thank you for reading and let me know if you have the solution

x=160;
i=time;
if (i&lt;280/24){x=x+time*24*-1}else{x=160;}
x;


Return to posts index

Andrei Popa
Re: scan a image pixel by pixel
on Nov 6, 2017 at 8:46:52 am

I assume you have separated dimensions,24 fps. So i think this should work
value+(time*24*-1)%280;


and y is
value+Math.floor((time*24)/280)
I didn't verify this, so if something goes wrong, respond and i will try to make it right.

Andrei
My Envato portfolio.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]