It is currently Fri Jun 05, 2026 7:07 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 97 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject: Re: GEGL operations exposed to Python-Fu - WIP 72 ops wrapped
PostPosted: Sat Nov 25, 2023 11:28 pm  (#91) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2010
Let me just say the last four plugins I need to port to python are just background design plugins (starfield, star background starburst) and video degradration. All the important plugins have already been ported.

The most useful plugins for scripting IMO will be the text stylers "glossy balloon, sharp bevel, custom bevel, inner glow, long shadow pd, neon border" and align for positioning images anywhere. So they are done. Mission Accomplished. I'll get to the last four when I feel like it.


Update here contains a few parameter error fixes I made. No new plugins were added but metallic had an error I fixed. It works but it had a slider that went way above its limit.
https://github.com/LinuxBeaver/Special_ ... /releases/

This goes in

Windows
C:\Users\(USERNAME)\AppData\Local\gegl-0.4\plug-ins

Linux
/home/(USERNAME)/.local/share/gegl-0.4/plug-ins

Linux (Flatpak includes Chromebook)
/home/(USERNAME)/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins



This goes in the normal plugins directory
Attachment:
gegl-python-fu by LinuxBeaver.py.zip [6.91 KiB]
Downloaded 486 times


Last edited by contrast_ on Sat Dec 09, 2023 2:02 am, edited 1 time in total.

Top
 Post subject: Re: GEGL operations exposed to Python-Fu - WIP 72 ops wrapped
PostPosted: Thu Dec 07, 2023 10:37 am  (#92) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2637
Location: Poland
@contrast_
Just a thought:
Almost every "c" code contains an additional registration (except GEGL)
Gimp installation procedure
Have you tried adding them?
If successful, you can locate anywhere in the menu and I think without the need for additional registration.

_________________
Image


Top
 Post subject: Re: GEGL operations exposed to Python-Fu - WIP 72 ops wrapped
PostPosted: Fri Dec 08, 2023 7:48 am  (#93) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2010
MareroQ wrote:
@contrast_
Just a thought:
Almost every "c" code contains an additional registration (except GEGL)
Gimp installation procedure
Have you tried adding them?
If successful, you can locate anywhere in the menu and I think without the need for additional registration.


This is the only way I know how to put filters in Gimp's main menu.
    "description", _("Make retro gaming text"),
    "gimp:menu-path", "<Image>/Filters/Text Styling/",
    "gimp:menu-label", _("Pixel Text..."),


I'm not sure if I fully understand what you mean.


Top
 Post subject: Re: GEGL operations exposed to Python-Fu - WIP 72 ops wrapped
PostPosted: Sat Dec 23, 2023 2:10 pm  (#94) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2010
GEGL is now in Pixelitor and a similar rule to python GEGL applies here.

viewtopic.php?f=22&t=3247&p=286097#p286097

Any GEGL Plugin of mine that works in python will also work in Pixelitor and even some that use Gimp only name spaces do work in Pixelitor but Pixelitor will ignore the (gimp:) namespace and not load anything. Where as python will report an error and not run anything.

So for examle my custom bevel plugin works in Pixelitor with the hardlight blend mode that is (gegl:hard-light) but if it is changed to grain merge blend mode (gimp:layer-mode layer-mode=grain-merge) it will just load every operation but grain merge.

I am working on porting even more plugins of mine to python and pixelitor GEGL. Here is an example of a special build of my RING BEVEL plugin that was ported to work without any Gimp namespaces.

Image


Top
 Post subject: Re: GEGL operations exposed to Python-Fu - WIP 72 ops wrapped
PostPosted: Fri Feb 16, 2024 11:44 am  (#95) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2010
My Inner Glow plugin had an unreleased update that broke all python to gegl stuff for me. I am going to investigate why this happened. Thank God I didn't release the update.

I find it sad that GEGL plugins I make can effect someone else's plugin.


Top
 Post subject: Re: GEGL operations exposed to Python-Fu - WIP 72 ops wrapped
PostPosted: Tue Mar 19, 2024 10:23 am  (#96) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2010
I updated my special GEGL plugins to work again with modern gegl without connect_from. Now all of these plugins are hidden from Gimp's GUI but do show up in the plugins registry (WHEN USED WITH THE .PY FILE)

https://github.com/LinuxBeaver/Special_ ... command.py

*update to remove layer shadow
Attachment:
python_compatible_plugins_download.zip [1.07 MiB]
Downloaded 171 times


also off topic, it is highly concerning that scripting GEGL in python is far more popular then chaining GEGL nodes the way I do. Python is not capable of chaining GEGL nodes correctly and most of the awesome stuff I do in GEGL is not possible in python or even CMYK Student's Gimp. This is because GEGL depends on nodes and composers that only GEGL Syntax can access.


Last edited by contrast_ on Fri Mar 22, 2024 1:56 am, edited 1 time in total.

Top
 Post subject: Re: GEGL operations exposed to Python-Fu - WIP 72 ops wrapped
PostPosted: Fri Mar 22, 2024 1:26 am  (#97) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 2010
The GEGL plugin script-layershadow.dll/so was causing a Gimp fail to start up issue when default layer shadow is present so it was removed.


Layer Shadow is an obscure plugin that I rarely talk about and it does not ship with anything. So there is a low chance anyone was affected by this. However Gimp will not start up until script-layershadow.dll or layershadow.dll is removed. I suggest removing script-layershadow.dll


Top
Post new topic Reply to topic  [ 97 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group