Skip to main content
Participant
September 24, 2010
Question

SupportedModes

  • September 24, 2010
  • 1 reply
  • 547 views

In CS5, when I set

-------------------------------------------------------------------------

SupportedModes

{

     noBitmap, noGrayScale,

     noIndexedColor, doesSupportRGBColor,

     noCMYKColor, noHSLColor,

     noHSBColor, noMultichannel,

     noDuotone, noLABColor

},

EnableInfo { "in(PSHOP_ImageMode, RGBMode, RGB48Mode) &&"

                    "(PSHOP_ImageDepth == 8 || PSHOP_ImageDepth == 16 || PSHOP_ImageDepth == 32)" },

-------------------------------------------------------------------------

to work only with RGB, my plug-in is still active (black) in Photoshop's menu in "Lab Color" mode. What I have missed?

Thank you,

Sergey

This topic has been closed for replies.

1 reply

Noel Carboni
Legend
September 27, 2010

Just looking over one of my own plug-ins, which does not show enabled for the Lab color model, I noticed several things:

1.  I have a space between the word in and the (.

2.  I do not continue the EnableInfo string on separate lines, but rather have it all in one set of quotes on one line.  I know it LOOKS like C code...  I think you can continue it on multiple lines the way you're doing it.

3.  I don't have any PSHOP_ImageDepth conditionals.

What are you trying to exclude with that PSHOP_ImageDepth line, anyway?  Photoshop only supports 8, 16, and 32 bit data, so you logically don't appear to be excluding anything.  Does it work properly without that part?

-Noel