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

Scripting appearance, 2 fills, second with offset path

Engaged ,
Apr 05, 2025 Apr 05, 2025

Hi,

it's possible to script, appearance, 2 fills, second with offset path ?

 

Appearence Offset pathjpg.jpg

Already played with LiveEffect, without success 

var string = '<LiveEffect name="Adobe Offset Path">' +
'<Dict data="I jntp 0 R mlim 4 R ofst 0.283"/>' +
'</LiveEffect>';
app.selection[0].applyEffect(string);

Action do not record offset path

TOPICS
Scripting
120
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 ,
Apr 05, 2025 Apr 05, 2025

Try to make them all into one graphic style and apply/merge them.

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
Engaged ,
Apr 05, 2025 Apr 05, 2025

Thank you, but I want to run the script to new doc, not having any graphic 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 ,
Apr 05, 2025 Apr 05, 2025

Is it possible to create the graphic style in another document beforehand and copy it to the new document?

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
Engaged ,
Apr 06, 2025 Apr 06, 2025
LATEST

I think I'll follow your suggestion.
I will open 

var fileRef = new File ("C:/Ai templates/Graph_style_1.pdf");
   app.open( fileRef );


If anyone have a script, it will be more elegant solution
Thank you!

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