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

circular update when arrowhead effect in plugin group

Engaged ,
Jan 13, 2021 Jan 13, 2021

Copy link to clipboard

Copied

My plugin creates a plugin group, which generally works fine. When the edit art contains a path with an arrowhead, round corners, or other effects, and I copy that art into the result art, it begins a cycle where the plugin group continually updates itself, then the effect updates, causing the plugin art to again update, until Illustrator crashes.

Is there a way to stop this from happening? The approach I've been trying is to simply expand the arrowhead, but I'm having trouble discovering programatically whether a path even has an arrowhead to expand.

It only happens when the object is selected, though, and the selection-changed notifier is sent. Then the object redraws, and the cycle repeats until it's no longer selected.

Any suggestions would be very much appreciated.

 

SOLVED: There's no need to mark the art as dirty when the plugin receives the SelectionChanged notifier. It only has to redraw the annotations. Illustrator will redraw the plugin group automatically.

TOPICS
SDK

Views

180

Translate

Translate

Report

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

correct answers 1 Correct answer

LEGEND , Feb 01, 2021 Feb 01, 2021

Hi Rick,

 

Thanks for sharing the solution here with us. This will help other users with the similar scenario.

Please feel free to reach out if you have any concern related to Adobe apps. We'll be happy to help.

 

Regards,

Ashutosh

Votes

Translate

Translate
Adobe
LEGEND ,
Feb 01, 2021 Feb 01, 2021

Copy link to clipboard

Copied

LATEST

Hi Rick,

 

Thanks for sharing the solution here with us. This will help other users with the similar scenario.

Please feel free to reach out if you have any concern related to Adobe apps. We'll be happy to help.

 

Regards,

Ashutosh

Votes

Translate

Translate

Report

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