Skip to main content
Uflex2flex
Participant
December 21, 2012
Answered

[Filter plugin] Can we add a new plane for transparency?

  • December 21, 2012
  • 1 reply
  • 859 views

Hi,

I created a filter plugin and I'd like to add transparency to the image. If the image is already a layer, it has already 4 planes (1 for transparency) and it works fine, but if the image is flatten, there are only 3 planes and I can't find a way to add a new plane to add transparency.

I can disable the plugin when there is no transparency (with the PSHOP_HasTransparencyMask property) but I think it may be confusing for the user and automatically adding transparency would be better.

Is there a way to do that that I missed? I tried modifying FilterRecord but when I try to switch to the new outPlane advanceState function returns an error.

This topic has been closed for replies.
Correct answer Chris Cox

A filter cannot add transparency unless it already exists (ie: you are filtering on a layer).

You can only modify existing transparency values.

If the image is flat, you'd need an automation plugin to change the background to a layer.

1 reply

Chris Cox
Chris CoxCorrect answer
Legend
December 29, 2012

A filter cannot add transparency unless it already exists (ie: you are filtering on a layer).

You can only modify existing transparency values.

If the image is flat, you'd need an automation plugin to change the background to a layer.