-
2000 Layers creation script…..?
Hi!
I have this great comp set up that will eventually have 100 precomps across, and 20 down.
The comp is set up in such a way that the layers names, and precomps names correspond due to expressions in the precomps, in order to stay linked and do their magic.
I’ve made it to 100 comps across… and conveniently AE is renaming them sequentially as I duplicate them so no problem there. Also, when I duplicate the precomps in the project window, it also conveniently renames them sequentially. Wahoo!
Now the problem: I have to option-drag each precomp from the project window onto its corresponding comp to finish this. I will have to do this almost 2000 times. So I’m trying to find a work-around….
This may not belong in expressions… but the reason for all this is because of the expressions in each of the precoms relating to the comp names- note the first line:
CL = comp(“Source_x2500”).layer(thisComp.name);
target = comp(“Source_x2500”).layer(“SourceFTG”);
samplePoint = CL.toComp(CL.anchor_point);
sampleRadius = [10,10];
target.sampleImage( samplePoint, sampleRadius, true, time)Think i’m gonna sprain my mouse finger – any words of wisdom / condolences?
CL = comp("Source_x2500").layer(thisComp.name);
target = comp("Source_x2500").layer("SourceFTG");
samplePoint = CL.toComp(CL.anchor_point);
sampleRadius = [10,10];
target.sampleImage( samplePoint, sampleRadius, true, time)