Retain layer names when outlining text
i know if there way retain names of text objects/layers when text converted outlines, using scripting.
i create files dozens of text layers (player names on of sports jerseys) , have send .ai file manufacturers. means have outline text, when so, layers lose names , become "<group>".
can think of way name these layers text contain?
hi openbracket,
it's impossible, if text outlined.
but possible text , outline text through script (be sure selected text filled , without stroke and/or effects)
you can try this:
// required: opened document 1 selected text frame var adoc = app.activedocument; var asel = adoc.selection; if (asel[0].typename =="textframe") { if (asel[0].characters.length < 40) { var newname = asel[0].contents; } else { newname = asel[0].contents.substr(0, 39); } asel[0].createoutline(); asel = adoc.selection; // name of new group = contents or part of contents of selected text frame asel[0].name = newname; }
have fun
More discussions in Illustrator Scripting
adobe
Comments
Post a Comment