I need a script that would provide leading to different text frames.
Hello,
I need a script that would change every text frame leading. Is it possible to make one?
Hello,
I need a script that would change every text frame leading. Is it possible to make one?
This this sample script which works on a selection of text frames:
#target illustrator
function test(){
var doc = app.activeDocument;
var s = doc.selection;
if(s == null && s.length == 0){
return;
}
for(var i = 0; i < s.length; i++){
if(s.typename != "TextFrame"){
continue;
}
s.textRange.characterAttributes.autoLeading = false;
s.textRange.characterAttributes.leading = 22;
};
};
test();
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.