Skip to main content
Lee DeRaud
Inspiring
September 25, 2014
Question

Access ReadImageDocumentDesc structure from automation plugin?

  • September 25, 2014
  • 1 reply
  • 527 views

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.

This topic has been closed for replies.

1 reply

Lee DeRaud
Inspiring
September 25, 2014

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...

Inspiring
April 18, 2022

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

TIA