Re: [Gimp-user] gimp-drawable-invert parameters



To get the documentaiton of the API, open the script-fu console, hit the "Browse..." button and enter "invert" in the search box. Then select the function.  You will see that the second argument determines if the inversion is done in perceptual or linear space.

On 04/10/18 22:25, HeyJC wrote:
Hello,

I am attempting to update the Saul Goode version of the Create Luminosity Masks
Script-Fu script, sg-luminosity-masks. It works fine in GIMP 2.8, but I have
just updated to GIMP 2.9.8 to take advantage of the automatic link to darktable
for importing RAW images.

When I first ran the script it ended with an error based on the use of
deprecated functions in the script. I replaced the function names with the newer
versions and the script starts to work but I eventually get the following error
message:

Execution error for 'Luminosity Masks (saulgoode)':
Error: Invalid number of arguments for gimp-drawable-invert (expected 2 but
received 1)

I have looked for a function reference for the gimp functions called in
Script-Fu without finding anything. I've also searched for the proper parameters
for gimp-drawable-invert but am also coming up blank.

Can anyone help with either a current function reference or the parameters for
gimp-drawable-invert. I've attached the original script for reference.

Thank you!

Attachments:
* http://www.gimpusers.com/system/attachments/872/original/sg-luminosity-masks.scm




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]