AE ENHANCERS

Expressions/Scripts/Presets
It is currently Thu Sep 02, 2010 3:48 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Cut up photo mosaic Quickly
PostPosted: Tue Jun 16, 2009 10:48 am 
This is a quick way to cut up a photo mosaic into an image sequence:

1. Place the large image a comp that is the size of the tiles you want to cutup.
2. The comp should be this many frames in length: (thisLayer.width/thisComp.width)*(thisLayer.height/thisComp.height).
2. Add the expression below to the image's anchorPoint.
3. Render out an image sequence.

Code:
xTile = thisComp.width;
yTile = thisComp.height;
xCompsize = thisLayer.width;
yCompsize = thisLayer.height;
numXpicts = Math.floor(xCompsize/xTile);
numYpicts = Math.floor(yCompsize/yTile);
f = timeToFrames(t = time + thisComp.displayStartTime, fps = 1.0 / thisComp.frameDuration, isDuration = false);
xLine = (f%numXpicts)+1;
yLine = Math.floor(f/numYpicts)+1;
x2 =(xTile*xLine)-(xTile *0.5);
y2 = (yTile*yLine)-(yTile*0.5);
transform.anchorPoint = [x2,y2];


I just got a photo mosaic without the source photos...so I thought if this ever befalls any of you, this could save some annoyance.


Top
  
 
 Post subject: Re: Cut up photo mosaic Quickly
PostPosted: Wed Jun 17, 2009 3:58 pm 
Offline

Joined: Tue Feb 03, 2009 6:30 pm
Posts: 84
Location: Paris - France
Nice, thanks for sharing this.

_________________
Sébastien
http://www.yenaphe.info


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group