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

How to set only stroke to default graphic style in a script?

Community Expert ,
Feb 14, 2025 Feb 14, 2025

When the shortcut D is pressed, the default fill and stroke are set. With similar behavior, I want to make only stroke exactly the same as the default graphic style, without changing the current fill. This is probably not a feature in Illustrator, right?

 

Not only making the main properties similar, such as stroke width, but also making the appearance exactly the same. Of course I know that script can't handle the appearance, but I'm trying to find a path to achieve this in some way, such as dynamic actions or applying graphic styles. If it can be done with normal Illustrator functionality, that's fine.

 

Any ideas?

TOPICS
Scripting
89
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 ,
Feb 14, 2025 Feb 14, 2025

perhaps

Dup shape, apply Graphic Style, restore fill from Dup, remove Dup?

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 ,
Feb 18, 2025 Feb 18, 2025
LATEST

Thanks for the idea.

For this method, it seems that I will need to somehow move or erase only the fill appearance. I'm stuck on this part.

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