Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Illustrator's effects/filters from code

New Here ,
Mar 24, 2011 Mar 24, 2011

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.

TOPICS
Scripting
890
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Mar 24, 2011 Mar 24, 2011

The easiest way would be to make a Graphic Style in the document or import an existing style and apply it to your pageItem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 25, 2011 Mar 25, 2011

Thanks for response,

This method could be the right way but if I wanted to edit some parameters of these styles?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 25, 2011 Mar 25, 2011

Since you cannot create a Graphic Style in a script, it doesn't seem likely you can modify it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 29, 2011 Mar 29, 2011

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 29, 2011 Mar 29, 2011
LATEST

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…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines