Access ReadImageDocumentDesc structure from automation plugin?

Explorer ,
Sep 25, 2014 Sep 25, 2014

Copy link to clipboard

Copied

One more, as long as I'm logged in...

Title says it all: is it possible for an automation plugin to get s pointer to a valid ReadImageDocumentDesc structure for the active document, and if so, how?

All I really need are a simple few things like image mode, but the functions in PropertyUtils.h (e.g. PIGetImageMode()) fail miserably when called from an automation plugin.

TOPICS
SDK

Views

268

Likes

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
Explorer ,
Sep 25, 2014 Sep 25, 2014

Copy link to clipboard

Copied

Ok, finally scoped out the value returned from PIGetInfo, at least for image mode, which was the most pressing issue.

This particular kabuki dance would be unnecessary if PS honored the 'SupportedModes' PiPL resource values for automation plugins...

Likes

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
Contributor ,
Apr 18, 2022 Apr 18, 2022

Copy link to clipboard

Copied

LATEST

Yo @Lee_DeRaud, stuck on the same issue, can you share some hints/code what/where U fished it out from? 

TIA 

Likes

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