GEGL pythonfu usage - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions) +---- Thread: GEGL pythonfu usage (/Thread-GEGL-pythonfu-usage) |
GEGL pythonfu usage - Undertaker666 - 12-28-2021 Hello, I've been trying to get a script to save me some hassle, and I got 2 thirds of my things I can automate to kinda figured out with pythonfu. The last feature is the shadows-highlights with a saved preset, which is a GEGL function. Is there anyway to invoke it in the pythonfu script? Thanks RE: GEGL pythonfu usage - Pocholo - 01-29-2022 (12-28-2021, 06:59 AM)Undertaker666 Wrote: Hello, Code: pdb.python_gegl(image, layer, RE: GEGL pythonfu usage - Undertaker666 - 01-30-2022 (01-29-2022, 11:54 PM)Pocholo Wrote:Hey thanks for your response, the code does not work if I comment just the code the script loads, and if I uncomment it the script will not load at all. Am I doing something wrong?(12-28-2021, 06:59 AM)Undertaker666 Wrote: Hello, RE: GEGL pythonfu usage - Ofnuts - 01-30-2022 (01-30-2022, 08:38 AM)Undertaker666 Wrote:(01-29-2022, 11:54 PM)Pocholo Wrote:Hey thanks for your response, the code does not work if I comment just the code the script loads, and if I uncomment it the script will not load at all. Am I doing something wrong?(12-28-2021, 06:59 AM)Undertaker666 Wrote: Hello, Are you replacing the various instances of "parameter" by a useful value? RE: GEGL pythonfu usage - Undertaker666 - 01-30-2022 (01-30-2022, 08:46 AM)Ofnuts Wrote:(01-30-2022, 08:38 AM)Undertaker666 Wrote:(01-29-2022, 11:54 PM)Pocholo Wrote:Hey thanks for your response, the code does not work if I comment just the code the script loads, and if I uncomment it the script will not load at all. Am I doing something wrong? I actually made it work, it's missing the name of the command in the code. Here's my code that works: pdb.python_gegl(image, drawable, "shadows-highlights shadows=35 highlights=-35") pdb.python_gegl(image, drawable, "color-enhance") Any way to get the name of the command to appear in the history tab and not geglcommand? RE: GEGL pythonfu usage - Pocholo - 01-30-2022 (01-30-2022, 09:19 AM)Undertaker666 Wrote:Yes, sorry I left out the name of the filter "shadows-highlights". I'm glad you got it working.(01-30-2022, 08:46 AM)Ofnuts Wrote:(01-30-2022, 08:38 AM)Undertaker666 Wrote: Hey thanks for your response, the code does not work if I comment just the code the script loads, and if I uncomment it the script will not load at all. Am I doing something wrong? |