Mobile app version of vmapp.org
Login or Join
Ravi4787994

: 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

@Ravi4787994

Posted in: #AdobeIllustrator #Automation #Text

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi4787994

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley591

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()}
}

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme