Skip to main content
Inspiring
November 25, 2009
Question

How to Recover Layer Masks From a Format Plugin

  • November 25, 2009
  • 1 reply
  • 1701 views

Hi !!

I am writing a format plugin that support multiple layers. Each of the layers can have their own mask (I need to be able to edit those masks).

When I try to save this multiple layers multiple masks image, I dont know how to access the layer mask data from the plugin. Anybody know how to do that? The 4th channel of the layer image is all white and does not look at all like my mask.

If I "apply the mask" to the layer before saving, then I can see the mask as a 4th channel in the plugin. However, by applying the mask, it is not editable anymore and lost forever  😞 .

Thanks!

Gilbert

This topic has been closed for replies.

1 reply

Chris Cox
Legend
November 25, 2009

Sounds like you're looking at transparency or alpha channels instead of the layer masks.

You'll need to ask for the additional masks in the parameters, or use channel ports (and still specifically look for the masks).

G_SoucyAuthor
Inspiring
November 25, 2009

Yes, right now I am looking for the alpha channel.

I am not familiar with the 2 solutions you are proposing. How can I "ask for the additional masks in the parameters" ?  Which parameters are you referring to?

Thanks!

Gilbert

Chris Cox
Legend
November 26, 2009

The FormatRecord - where you put almost all the parameters/arguments for the format plugin API.

And read the SDK documentation about channel ports.