I always said and I say it again; "I love this feature on Gimp Learn": • Featuring Members' Images •
Dionísio's image caught my attention when I looked at the images available in • Featuring Members' Images •, and so I ended up here.
I didn't remember this plugin or this topic anymore, so I had to reread it. I discovered that about 2 years ago it was impossible for me to use the plugin due to bugs. So I decided to try again, this time with a much more solid version of Gimp (less unstable).
Everything was going well.
I was able to create and load presets.
I managed to reproduce Dionísio's candle presets without any problem.
File "C: \ Users \ ... \ layerfx_presets.py", line 1309, in python_tt_all_load
exec ("pdb.python_layerfx_outer_glow" + ogpresetvalues )
File "<string>", line 1, in <module>
TypeError: unable to parse color string
======================================================================================================
I initially tested using the 'Load Preset Apply All' option
It seems that the problem would be associated with the use of the gradient with the Outer_glow option. (Just my guess)
The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////////////////////////////
I couldn't use the plugin anymore. I restarted Gimp once and nothing.
It reminded me of what I had already reported in posts #23 and #24 two years ago. This time I didn't insist so much, I didn't restart the gimp again or reinstall the plugin again, nor restart Windows.
I don't know what is triggering this crash. But this is not normal.
Would it be possible to find out why this crash and make an updated version available?
Thank you very much in advance!
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston
Not sure why you're getting errors but it seems it's related to the layerfx.py version you have.
Did you get it from the archive (layerfx.py). I never know which layerfx works for which plug-in. But this plug-in's first post has a reference to layerfx.py so try to use that one and see if problem goes away.
I used the version provided in the attachment to the first post (#1) - layerfx_presets (10) _and_altered_layerfx.zip. This attachment contains the layerfx_presets.py + layerfx.py plugins.
Ok I'll try using another version of layerfx.py and return with the results obtained.
Thanks Tim for returning!
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston
Not sure why you're getting errors but it seems it's related to the layerfx.py version you have.
Did you get it from the archive (layerfx.py). I never know which layerfx works for which plug-in. But this plug-in's first post has a reference to layerfx.py so try to use that one and see if problem goes away.
It didn't work.
I removed the layerfx.py plugin obtained in the .zip of post #1 (temporarily changed the plugin name - layerfx.bkppy)
Now the layerfx_prest.py menus no longer display the options for saving or loading. The menu is simple.
It seems that the version contained in the attachment of post # 1 is necessary for the layerfx_preset to work
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston
It looks to me that you still have duplicate versions of LayerFX maybe a layerfx.scm somewhere or yet another version of layerfx.py (edit. might be the way you re-named that old version try something like layerfx.py.bak instead)
The one you want is the most recent 'fix' LayerFX-2.10.py which together with layerfx_presets.py gives this.
On the possibility of duplicity:
I checked all the paths where there could be scripts and plugins being read by gimp. Edit - Preferences - Folders (plug-ins and Scripts)
I wrote them down.
... Preferences / Plug-ins
... lib / gimp / 2.0 / Plug-ins
... Preferences / old-plug-ins
... personal folder / Plugins
I checked them all and found a .scm in my personal folder - Layer-FX-2.10 .scm
But there was no duplication (not at the moment), because when I removed the layerfx.py that was made available in the .zip file of post #1, only this Layer-FX-2.10 .scm and layerfx_presets were installed.
**In the beginning, when I installed the .zip from post #1 it actually ended up duplicating - although the plugin worked for several uses before crash)
Okay, I removed the .scm version.
I downloaded the py version at https://www.gimpscripts.net/search?q=layerfx.py
Now there is only this version downloaded from gimpscripts.net and the layerfx_presets version downloaded in post #1 (layerfx_presets (10) _and_altered_layerfx)
But now, in addition to the menu continuing to appear without the options for saving and loading presets, there is also no Layer-fx-2.10.py 9 plugin as it appeared before - see image in post # 44)
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston
I still advise a review of what and where you have everything installed. If happy that you just have LayerFX-2.10.py and layerfx_presets.py then just a suggestion, delete the pluginrc file in case any old settings are still in force.
Again I looked in all the folders indicated by Gimp in 'Edit - Preferences - Folders (plug-ins and Scripts)' - No duplicates.
I used the windows search to check for "layerfx", "layer_fx" and layer-fx "in folders and subfolders:
► C: \ Users \ ... \ Gimp-2.10.21_Portable-32-64bit-Win \ Gimp-2.10.21_Portable-32-64bit-Win
► C: \ Users \ ... \ ActiveScripts (where I have a folder for plugins and another for scripts)
No duplicates.
I ran the kp24 script to look for duplicates between the installed scripts:
================================================== =====
Test For Duplicate Scripts v1.8 Warning
Found 126 script files to check against
Test For Duplicate Scripts v1.8 Warning
There are 191 scripts to check
Test For Duplicate Scripts v1.8 Warning
Finished. Found 0 duplicates in 191 scripts
================================================== =====
Search for duplicates without positive results.
2nd part:
I removed the LayerFX-2.10.py and layerfx_presets.py files from the plug-in installation folder.
I deleted the pluginrc file.
I restarted Gimp and checked the lack of layerfx in the expected locations.
I closed Gimp and reset only the LayerFX-2.10.py plugin in the plugin installation folder (I use the personal folder). I restarted Gimp and checked that the layerfx2.10 plugin was in the expected menus - OK
I closed Gimp and this time I replaced the layerfx_presets.py plug-in in the same folder where layerfx2.10.py was. (same personal folder). I restarted Gimp ... without change.
The layerfx_presets menus (save and load presets) still do not appear. Only the simple menus of layerfx-2.10.py.
I closed Gimp, changed the plug-ins folder, from the personal folder (where I use my installed scripts / plug-ins) to the C: \ Users \ ... \ Gimp-2.10.21_Portable-32-64bit-Win \ Preferences \ plug-ins.
I restarted the gimp ... without change.
The strange thing is that at the beginning, I only had layerfx.scm, and when I installed the plugins available in the .ZIP of post #1, everything worked fine for some time.
I was able to run the layerfx_presets plugin by saving and loading presets and tested some made available by other users. Until there was a crash.
Even though I tried to reproduce this scenario - using these 3 initial filters, nothing changes, the menus of layerfx_presets insist on not wanting to appear.
Was there any other file besides pluginrc involved in this situation?
Was it perhaps the case of being called a shaman, a priest or a Buddhist monk to solve this case?
I'm without my laptop for now.
Later I will have it, and I will be able to check if using the scheme I have now (without using the layerfx available in the ZIP of post #1 and without using layerfx.scm) if the thing works without any bad surprises.
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston
..but what I think (might be) happening is the layerfx_presets plugin writes all those 'something'.txt text files when it loads. If it is not able to write the files then the plugin fails and does not load. Difficult to show in that portable gimp with no verbose mode.
Where do the 'something'.txt files end up ? Not easy to find with the usual windows tools, However it seems that "Gimp Portable..."\bin is the place. Not my idea of a suitable destination, but there you are.
I am now starting testing on my laptop. I've already removed all layerfx and deleted the pluginrc
You're right. Presets are stored in the Bin folder.
I didn't quite understand what you meant about "check writing permissions to wherever you have Gimp installed" - I thought that permissions were just for Linux.
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston