Hot Door CORE Forum
Annotation with CORE - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Getting started (http://hotdoorcore.com/forum/forumdisplay.php?fid=6)
+--- Thread: Annotation with CORE (/showthread.php?tid=7)



Annotation with CORE - VincentDoan - 03-10-2014

I am not fond of Annotation support in AI but since it is the only one with draw bezier support and my current plug-in extensively used it, so I am stuck with it for a while until CORE has bezier support.
But, with the plug-in reference and the annotator handle obtain from CORE below, how do I get to AI annotator callback and it's draw method?
Is CORE annotator callback the only way I can get to the annotator?
I prefer to setup annotation the old way if possible.

this->blueAnnotator = hdi::core::Annotator ("", HDI_CORE_CALLBACK(blue:Tonguelugin, this, AnnotatorCB));
this->blueAnnotator.setActive(true);
this->blueAnnotator.activate();
SPPluginRef thisplugin = this->__corePlug->spPluginRef();
this->blueAnnotator.aiAnnotatorHandle();


RE: Annotation with CORE - garrett - 03-11-2014

(03-10-2014, 07:45 PM)VincentDoan Wrote: But, with the plug-in reference and the annotator handle obtain from CORE below, how do I get to AI annotator callback and it's draw method?
Is CORE annotator callback the only way I can get to the annotator?

The event dispatcher in CORE automatically handles the annotation context and sets it up properly for drawing in CS3 through CC (17.x), and then calls your annotation callback. The context is only valid for the duration of the callback.

Since we were going for a "lowest common denominator" type of functionality in our earliest versions of CORE, we did not implement a bezier annotation function because this feature is unavailable in the CS3 SDK. There are many other types of features that are only available in one version of Illustrator or another, which we also chose not to include initially. We will add these types of functions as time goes on, wrapped in preprocessor conditions for the supported versions of Illustrator.

For now, I have added an annotation context accessor to the hdi::core::AnnotatorMessage class, which will be included in version 0.5.1.


RE: Annotation with CORE - VincentDoan - 03-12-2014

Thank you so much both Garrett and Brendon, for being so accommodating.
I have 4 other plug-ins that are ready to test CORE to the limit :-)
AI developers, what are you waiting for???