Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Script Adding text to Multiple layers and add property in Attributes Panel

$
0
0

What I'd like to do is create a JavaScript to add text to multiple layers, give the text no stroke and no fill, and enter text into the Attributes Panel.

As you can see in my screen shot, I have the same text selected in 9 of the 13 layers, which is basically pasted in the same spot on all 9 layers. The text has an Attribute of INDEX. And of course the stroke and fill don't have any color.

This text is in a template we use, but older templates don't have it. Plus the INDEX text in the Attributes Panel is used when we run an Action. It turns on and off layers and does other functions according to this attribute. So, when we open old artwork for revisions, running the script would be much quicker than opening a template, copy and pasting the text.

I have created a script to add the text. I can get it to specific layers, but cannot get the no stroke and no fill to work, and have no idea how or if it's possible to enter text in the Attribute Panel. I can upload a sample script to show what I already have, but if the Attributes Panel text won't work, then I'll just leave it as is.

Is it possible to script no fill and no stroke and the property in Attributes Panel? Is it possible in Visual Basic, though I've never programmed that before? I've gone through the JavaScript Tools Guide and couldn't find anything.

Thanks in advance everyone.

 

Windows 10

Illustrator CC 17 (64-bit)

 


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>