Copy link to clipboard
Copied
I am new to plugin development for illustrator 2019 CC SDK. I got matching through
sAIMatchingArt->GetMatchingArt(&pathSpec, 1, &matching, &artCount); and traversed it to get Art.
I made a type check on the Art: sAIArt->GetArtType(art, type) != kNoErr, indicating that this is an invalid Art. So I cannot get the Bounds of this Art.
At the same time, when I want to get the current active document, the returned result is "doc" error. AIDocumentHandle activeDoc = nullptr;
ASErr err = sAIDocument->GetDocument(&activeDoc);
The result of err is "doc", which means I cannot get the current active document.
Copy link to clipboard
Copied
in the future, to find the best place to post your message, use the list here, https://community.adobe.com/
p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.
<"moved from using the community">
Copy link to clipboard
Copied
thank
Copy link to clipboard
Copied
(you're welcome)
Copy link to clipboard
Copied
In fact, I am missing AppContext to call the context of objects in the selected area.
For example, the following code:
AppContext appContext(fPluginRef);
std::vector<AIRealRect> boundsList = GetSelectedArtBounds();
The result of basicArtList is the bounds of the art object I need.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now