Copy link to clipboard
Copied
Hi everyone,
I need to apply an effect(like drop shadow) from actionscript code on PathItem(generally on PageItem) object.
I've looked for a way to do this but with no results.
Someone could help me?
Thanks in advance.
Copy link to clipboard
Copied
The easiest way would be to make a Graphic Style in the document or import an existing style and apply it to your pageItem.
Copy link to clipboard
Copied
Thanks for response,
This method could be the right way but if I wanted to edit some parameters of these styles?
Copy link to clipboard
Copied
Since you cannot create a Graphic Style in a script, it doesn't seem likely you can modify it.
Copy link to clipboard
Copied
Ok, so there is no way to interact with these styles directly from code.
Thanks for your help.
In short, I must create a style with Illustrator and export it as .ai file, then I can import it in document's styles library.
But how can I import this file from code?
Thanks
Copy link to clipboard
Copied
You don't import it from library… You have to duplicate an art object with the style applied from one doc to the other. Unless you can find another way? I did look at 'open as library' which does open the doc as a palette but you still can't access the contents… They don't show up any where as either app or doc elements…
Find more inspiration, events, and resources on the new Adobe Community
Explore Now