Posts: 3
Threads: 1
Joined: Dec 2021
Reputation:
0
Operating system(s):
- Windows Vista or 7, 8, 10 (64-bit)
Gimp version: 2.10
12-28-2021, 06:59 AM
(This post was last modified: 12-28-2021, 07:10 AM by Undertaker666.)
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
Posts: 55
Threads: 17
Joined: May 2018
Reputation:
3
Operating system(s):
- Windows (Vista and later)
Gimp version: 2.10
(12-28-2021, 06:59 AM)Undertaker666 Wrote: 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
First, you need to download and install this gegl plugin: gegl_command zip from here (post #31): http://gimpchat.com/viewtopic.php?f=9&t=...30#p264354 and use the code line in you python script.
Code:
pdb.python_gegl(image, layer,
"shadows=parameter highlights=parameter whitepoint=parameter radius=parameter compress=parameter shadows-ccorrect=parameter highlights-ccorrect=parameter")
Posts: 3
Threads: 1
Joined: Dec 2021
Reputation:
0
Operating system(s):
- Windows Vista or 7, 8, 10 (64-bit)
Gimp version: 2.10
(01-29-2022, 11:54 PM)Pocholo Wrote: (12-28-2021, 06:59 AM)Undertaker666 Wrote: 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
First, you need to download and install this gegl plugin: gegl_command zip from here (post #31): http://gimpchat.com/viewtopic.php?f=9&t=...30#p264354 and use the code line in you python script.
Code:
pdb.python_gegl(image, layer,
"shadows=parameter highlights=parameter whitepoint=parameter radius=parameter compress=parameter shadows-ccorrect=parameter highlights-ccorrect=parameter")
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?
Posts: 6,339
Threads: 272
Joined: Oct 2016
Reputation:
563
Operating system(s):
Gimp version: 2.10
(01-30-2022, 08:38 AM)Undertaker666 Wrote: (01-29-2022, 11:54 PM)Pocholo Wrote: (12-28-2021, 06:59 AM)Undertaker666 Wrote: 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
First, you need to download and install this gegl plugin: gegl_command zip from here (post #31): http://gimpchat.com/viewtopic.php?f=9&t=...30#p264354 and use the code line in you python script.
Code:
pdb.python_gegl(image, layer,
"shadows=parameter highlights=parameter whitepoint=parameter radius=parameter compress=parameter shadows-ccorrect=parameter highlights-ccorrect=parameter")
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?
Are you replacing the various instances of "parameter" by a useful value?
Posts: 3
Threads: 1
Joined: Dec 2021
Reputation:
0
Operating system(s):
- Windows Vista or 7, 8, 10 (64-bit)
Gimp version: 2.10
(01-30-2022, 08:46 AM)Ofnuts Wrote: (01-30-2022, 08:38 AM)Undertaker666 Wrote: (01-29-2022, 11:54 PM)Pocholo Wrote:
Code:
pdb.python_gegl(image, layer,
"shadows=parameter highlights=parameter whitepoint=parameter radius=parameter compress=parameter shadows-ccorrect=parameter highlights-ccorrect=parameter")
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?
Are you replacing the various instances of "parameter" by a useful value?
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?
Posts: 55
Threads: 17
Joined: May 2018
Reputation:
3
Operating system(s):
- Windows (Vista and later)
Gimp version: 2.10
01-30-2022, 09:55 PM
(This post was last modified: 01-30-2022, 10:56 PM by Ofnuts.)
(01-30-2022, 09:19 AM)Undertaker666 Wrote: (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?
Are you replacing the various instances of "parameter" by a useful value?
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?
Yes, sorry I left out the name of the filter "shadows-highlights". I'm glad you got it working.
|