How do I use the non-legacy version of Emboss from Python-fu? - 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: How do I use the non-legacy version of Emboss from Python-fu? (/Thread-How-do-I-use-the-non-legacy-version-of-Emboss-from-Python-fu--9136) |
How do I use the non-legacy version of Emboss from Python-fu? - weanoob - 07-10-2024 (07-10-2024, 01:12 AM)weanoob Wrote: I'm writing a script that involves the use of emboss to create a specific effect. When I try (I was told to post this in Extending the GIMP, then saw this subforum and decided to start it here instead.) RE: How do I use the non-legacy version of Emboss from Python-fu? - Ofnuts - 07-10-2024 There is no easy way to call the GEGL tools from a script, but it can be done, see here. RE: How do I use the non-legacy version of Emboss from Python-fu? - rich2005 - 07-10-2024 Go and have a look through Kevins post as Ofnuts link, there are other posts on the GimpChat forum. To get you started. The GEGL syntax for emboss is here: https://gegl.org/operations/gegl-emboss.html You can check for a valid command using Generic -> GEGL graph [attachment=12102] ...but to include that into a python script you need a utility plugin such as the attached gegl_command.py . Your script will call that plugin. Also in the attached zip is an example for_gegl.py Unzip, and put both in your plugins folder. The example registers in the tools menu as run_gegl I have tried in Win10 / Gimp 2.10.38 - it does work. RE: How do I use the non-legacy version of Emboss from Python-fu? - weanoob - 08-01-2024 I figured it out. I will not let this be a "PM'd you the fix " moment. Code: from gimpfu import * I don't remember where I got most of this code from, probably this forum. |