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

import a Graphic Style Library in Adobe Illustrator using Javascript?

$
0
0

I am creating a script to distribute to users.

The package contains 1 script and a graphic style library that is required to apply a 3d effect in the script.

Is there a way to open the graphic style library from the script?

The script and library will both be located in the Adobe Illustrator Presets.

I am trying to reduce the amount of actions required by the user so that they only need to run the script without having to open the graphic style library first.

Below code occurs error: target layer cannot be modified

But no unvisible or locked layer

var style = app.activeDocument.graphicStyles.getByName("Jive_GS");

style.applyTo(myvector);


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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