: How to automatically generate a text variable for each text box in my illustrator file I have a big file with hundreds of images and texts. I need to export all the texts in order to send
I have a big file with hundreds of images and texts. I need to export all the texts in order to send them to the translator.
I know I can do it with the variables, but its still a long process because I have to select every single text box and create a text variable with an univocal name out of that.
Does anyone know if there is a way to automatize this process? Maybe with the Actions?
More posts by @Ravi4787994
1 Comments
Sorted by latest first Latest Oldest Best
this script targets the active layer, it creates variables and binds them to each text frame
#target illustrator
// script.name = makeActiveLayerTextDynamic.jsx;
// script.description = makes ALL text in the Active Layer Dynamic, creates Variables;
// script.required = one document with at leas one textFrame;
// script.parent = CarlosCanto // 04/17/14;
// script.elegant = false;
var idoc = app.activeDocument;
var ilayer = idoc.activeLayer;
for (i=0; i<ilayer.textFrames.length; i++) {
var itext = ilayer.textFrames[i];
var idocvar = idoc.variables.add();
idocvar.kind = VariableKind.TEXTUAL;
try {itext.contentVariable = idocvar}
catch (e) {idocvar.remove()}
}
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.