Updating annotation drawings as bezier control points are dragged
I'm working on an Illustrator plugin to help visualise bezier curve continuity. Screenshot: https://i.imgur.com/rxgqDJL.png
I wanted to ask if there's a way to update artwork annotations as the user drags a bezier path control point? Currently my plugin only updates the annotation drawing once you let go.
I assume this is possible because Illustrator seems to be able to do it for showing useful information such as alignment as you edit curves.
Some extra technical details in case it helps... :)
I started this project using the Annotator example project from the sdk as a starter.
In my plugin I have a method to listen for events and then draw annotations using the sAIAnnotatorDrawer api:
ASErr AnnotatorPlugin::Message(char* caller, char* selector, void* message)
I've registered a notifier for the kAIArtSelectionChangedNotifier event:
sAINotifier->AddNotifier(fPluginRef, "AnnotatorPlugin", kAIArtSelectionChangedNotifier, &fNotifySelectionChanged);
So, it seems using kAIArtSelectionChangedNotifier only notifies my plugin once the control points have finished moving?
Is it possible to be notified as the control points are still being moved i.e. as the mouse is dragged? Also, can I get the state of the in-progress curve being edited?
Any help is appreciated, thank you! 😊