37
loading...
This website collects cookies to deliver better user experience
.js
-file:const doc = app.activeDocument
for (i = 0; i < len; i++) {
height = ((HEIGHT * len) > pageHeight) ? (HEIGHT / len) : HEIGHT;
width = WIDTH;
tmpFrame = doc.pages[pageIndex].textFrames.add();
tmpFrame.geometricBounds = [0, 0, pageHeight, pageWidth];
tmpFrame.contents = frames[i];
tmpFrame.textFramePreferences.insetSpacing = [2, 2, 2, 2];
tmpFrame.textFramePreferences.verticalJustification = VerticalJustification.CENTER_ALIGN;
tmpFrame.geometricBounds = [0, 0, height, width];
tmpFrame.move( [-width, height * i] );
}
Add “Word Effects”, for instance changing a line of text into ”wavy text” or text, where each letter grow or shrink in font-size (in comic books, these are KABOUM! and VROOOOMM! etc.!)
Change the language of all text-frames in a document
“Fit text to frame”, by growing or shrinking the font-size
Color layers with original lettering, so you could differentiate them from local language lettering
d=app.activeDocument;l=d.links;
for(j=l.length-1;j>=0;j--){
n=l[j].filePath.replace('TUNI_45','TUNIQUES_50')+'.tif';
nf = File(n.replace("C:\\TB45\\Tuniques Bleues 45 page 03_46\\images","D:\\Download\\TB_3\\Natifs\\Tuniques 50 page 03-46\\images"))
if(nf.exists){l[j].relink(nf);l[j].update()}
}
No matter which field you work in, it's all about improving and optimizing your workflow. If you have repetitive tasks, use your coding skills to remove them!