Is it possible to test the number of input layers (inside GIMP GMIC plugin filter execution) for a particular number and stop execution if it is different? I optionally want to display an error message.
Something like:
if (count(layers) <> 3) // Test the number of input layers
MsgBox(“Number of input layers is wrong!”); // Display error message
exit(0); // Stop execution of the current filter