![]() |
ofn3-export-layers - 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) +--- Thread: ofn3-export-layers (/Thread-ofn3-export-layers) Pages:
1
2
|
ofn3-export-layers - Ofnuts - 03-29-2025 This is ofn-export-layers ported to Gimp v3. So far this is done without added functionality, for instance it will still export everything and not just the selected layers. Any good ideas for enhancements welcome. At the usual place for V3 things. Enjoy. RE: ofn3-export-layers - rich2005 - 03-29-2025 This gimp.org Gimp 3.0.2 appimage and guess the problem is it uses python 3.11.2 Using defaults, It makes the new folder ok, then fails. [attachment=13302] Looking at the dialogue, The name pattern entry could be wider, maybe same width as the Directory. RE: ofn3-export-layers - Ofnuts - 03-29-2025 (03-29-2025, 08:06 PM)rich2005 Wrote: This gimp.org Gimp 3.0.2 appimage and guess the problem is it uses python 3.11.2 1. More like a problem of GObject/Gio version, will see if I can make the code run with ancient libraries. Have you got a /usr/lib/x86_64-linux-gnu/pkgconfig/gio-2.0.pc file on your system (or in the AppImage) and if so, what is the version it declares? 2. Already reported the problem: https://gitlab.gnome.org/GNOME/gimp/-/issues/13454 RE: ofn3-export-layers - rich2005 - 03-29-2025 At the moment using kubuntu 22.04 and with the appimage extracted no gio-2.0.pc anywhere. RE: ofn3-export-layers - Ofnuts - 03-29-2025 (03-29-2025, 09:23 PM)rich2005 Wrote: At the moment using kubuntu 22.04 and with the appimage extracted Uploaded a new version that should work with older libraries. RE: ofn3-export-layers - teapot - 03-30-2025 Thank you Ofnuts. I had the same two problems as Rich reported above. The execution error has gone with the second download. Still using gimp 3.0.0, I got this with the new download: gimphelpers.py, line 694 Execution error for 'Export all layers': Must be GLib.Error, not NoneType So tried this change: Code: < values: Gimp.ValueArray = procedure.new_return_values(Gimp.PDBStatusType.SUCCESS,None) Also seem to have acquired some nuts, is that anything to do with your username? It looks like the images of the dialog boxes in the documentation are the old ones. E.g. having buttons Help, Cancel, OK. rather than Help, Reset, Cancel, OK In the readme.md file: Line 27: 4. Enter plugins Should it be 4. Enter plug-ins As for ideas I still like the old version that exports all the top level groups as one layer per group. Generally I don't merge layers and prefer to keep intermediate layers so often keep each try in a top level group where the group contains visible layers that contribute to the result and invisible intermediate layers. So then the old version exports all the tries as they would look if the top level group was visible. RE: ofn3-export-layers - Ofnuts - 03-30-2025 (03-30-2025, 03:16 AM)teapot Wrote: Thank you Ofnuts. I had the same two problems as Rich reported above. The execution error has gone with the second download. Still a bit of a foggy area to me as well. Included your change and crossing fingers. (03-30-2025, 03:16 AM)teapot Wrote: Also seem to have acquired some nuts, is that anything to do with your username? Yes, vanity branding.... ![]() (03-30-2025, 03:16 AM)teapot Wrote: It looks like the images of the dialog boxes in the documentation are the old ones. E.g. having buttons Help, Cancel, OK. rather than Help, Reset, Cancel, OK In Gimp 3.0 the pattern field is much too short to show something useful, so I temporarily kept the old images (03-30-2025, 03:16 AM)teapot Wrote: In the readme.md file: Line 27: 4. Enter plugins Should it be 4. Enter plug-ins OK (03-30-2025, 03:16 AM)teapot Wrote: As for ideas I still like the old version that exports all the top level groups as one layer per group. Generally I don't merge layers and prefer to keep intermediate layers so often keep each try in a top level group where the group contains visible layers that contribute to the result and invisible intermediate layers. So then the old version exports all the tries as they would look if the top level group was visible. OK, will add this as an option. Which begs a question, there are now three ways to handle groups:
RE: ofn3-export-layers - rich2005 - 03-30-2025 Using kubuntu 24.04 / gimp.org Gimp 3.0.2 appimage. Using default revised plugin working ok. ....still gives a warning message after the layers are exported. (Execution error for 'Export all layers': Must be GLib.Error, not NoneType) But that is all it is, a message RE: ofn3-export-layers - Ofnuts - 03-31-2025 (03-30-2025, 09:23 AM)rich2005 Wrote: Using kubuntu 24.04 / gimp.org Gimp 3.0.2 appimage. Out of curiosity, can you tell me what you get if you enter GLib.MINOR_VERSION in the Python console? (probably some number around 70) RE: ofn3-export-layers - rich2005 - 03-31-2025 74 org.gimp Gimp 3.0.2 appimage looks like this: [attachment=13311] |