Older Newer
Thu, 19 Dec 2019 06:45:45 . . . . SyneRyder [Initial definition]


Changes by last author:

Added:
= filterCase =

== Syntax ==

int filterCase

== Description ==

The type of data being filtered: Flat with no selection (1), Flat with a selection (2), Floating (3), Layer with editable transparency and no selection (4), Layer with editable transparency and a selection (5), Layer with preserved transparency and no selection (6), or Layer with preserved transparency and a selection (7).

A zero indicates that the host did not set this variable, and the plug-in should look at the haveMask and isFloating variables to determine the filter case.

== Example ==

<code>

%ffp

OnFilterStart: {

switch(filterCase) {

case 0:

Info ("Unknown filterCase");

break;

case 1:

Info ("Flat with no selection");

break;

case 2:

Info ("Flat with a selection");

break;

case 3:

Info ("Floating");

break;

case 4:

Info ("Layer with editable transparency and no selection");

break;

case 5:

Info ("Layer with editable transparency and a selection");

break;

case 6:

Info ("Layer with preserved transparency and no selection");

break;

case 7:

Info ("Layer with preserved transparency and a selection");

break;

default:

Info ("Unknown filterCase");

break;

}

return false;

}

</code>