How to get all placed items on illustrator sdk ( sAIPlaced )
Iam new in illustrator plugin development.
I am trying to get all places image via illustrator sdk.
I trying with "sAIPlaced" suite. But I didn't get any result.
Is there any possible .
Iam new in illustrator plugin development.
I am trying to get all places image via illustrator sdk.
I trying with "sAIPlaced" suite. But I didn't get any result.
Is there any possible .
Hi, welcome to the forum! Since you say you're new to this, you may be looking for a method to find all placed art. This is a snipped from how I do it:
AIMatchingArtSpec spec[1];
AIErr error;
*matches = nil;
spec[0].type = kPlacedArt;
spec[0].whichAttr = 0;
spec[0].attr = 0;
error = sAIMatch->GetMatchingArt( spec, 1, matches, numMatches );
Once selected, you may want to iterate through the list to check if they're locked, visible, etc.
If you've already done that, then maybe you're planning to access the actual item that was placed. I've done this with scripts, but not in the SDK -- sorry I don't have C++ code to offer for that. With AppleScript it's easy to get the file path, then find the item via the OS file system, and even hand it off to another app to edit.
Best of luck with your project!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.