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: Select all
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.