how to give text shadow in AI Script ie apply shadow to text.
In script you must have a graphic style for the shadow and apply that to your text…
you mean Drop Shadow Effect?
ya any shadow type
Well given that you have a graphic style fuzz in an open document and a page item… then…
var doc = app.activeDocument; var fuzz = doc.graphicStyles.getByName( 'fuzz' ); fuzz.applyTo( doc.pageItems[0] );
how should i add graphics style in my document can u plz give me any way to add it
You can't create them with script… They need to already exist somewhere… To get them from one doc to another you will need to copy an object they are applied to…
When i am using this the error is coming in line no. 3 that "no such element graphicStyles"
graphicStyles
Have you craeted a document graphic style called fuzz?