It is currently 21 Jan 2021, 11:09
| ||||
| ||||
|
|

Apply and Save/Load Preset Script for Layer Effects (Experimental)

- tim
- View:
|Posts
- Topic Posts: 18/53 | Posts: 5211
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,218.22 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3067
- x 1012
- Contact:
Apply and Save/Load Preset Script for Layer Effects (Experimental)
This script won't allow you to load a preset and change it before applying
But it does allow you apply an effect for example: a bevel and emboss (part of layerfx.py) and save that as a preset name by calling "Apply and Save Preset Bevel and Emboss".
Then later you can apply a preset by calling "Load Preset Bevel and Emboss" and choosing the preset name you've previously saved.
Also version 7 and up allows you to apply all layer effects presets with the same name.
For example if you have saved a preset bevel and emboss called "candle" and an inner shadow called "candle" (same name) you can apply both in one go by calling "Load Preset Apply All" and choosing "candle".
See also Layer Effects Presets Collection for presets to be used with this plug-in/script. Plug-in Menu locations:
multiple entries under
for example for Bevel and Emboss it's under
Settings files are saved as .txt files under the working folder (wherever you execute GIMP from).
For example, for bevel and emboss settings it's saved under "bevel_and_emboss.txt".
They're just text file that has each setting on a line starting with preset name followed by the pipe (|) character then followed by parameters used. So if you wanted to share these settings you can by just copying whatever lines you like to corresponding .txt file or rename the preset name by just changing the text in front of the pipe.
But it does allow you apply an effect for example: a bevel and emboss (part of layerfx.py) and save that as a preset name by calling "Apply and Save Preset Bevel and Emboss".
Then later you can apply a preset by calling "Load Preset Bevel and Emboss" and choosing the preset name you've previously saved.
Also version 7 and up allows you to apply all layer effects presets with the same name.
For example if you have saved a preset bevel and emboss called "candle" and an inner shadow called "candle" (same name) you can apply both in one go by calling "Load Preset Apply All" and choosing "candle".
See also Layer Effects Presets Collection for presets to be used with this plug-in/script. Plug-in Menu locations:
multiple entries under
Layer/Layer Effects
for example for Bevel and Emboss it's under
Layer/Layer Effects/Apply and Save Preset Bevel and Emboss
Layer/Layer Effects/Load Preset Bevel and Emboss
Settings files are saved as .txt files under the working folder (wherever you execute GIMP from).
For example, for bevel and emboss settings it's saved under "bevel_and_emboss.txt".
They're just text file that has each setting on a line starting with preset name followed by the pipe (|) character then followed by parameters used. So if you wanted to share these settings you can by just copying whatever lines you like to corresponding .txt file or rename the preset name by just changing the text in front of the pipe.
aka Tin
Hi tim
I'm not sure if I'm using this script right, but anyway, the first attempt I've got this error:
File "C: \ Users \ ... \ GimpPortableSamj \ GimpEval-2.10-Win \ 64bit \ lib \ gimp \ 2.0 \ python / gimpfu.py", line 740, in response
dialog.res = run_script (params)
File "C: \ Users \ ... \ GimpPortableSamj \ GimpEval-2.10-Win \ 64bit \ lib \ gimp \ 2.0 \ python / gimpfu.py", line 361, in run_script
return apply (function, params)
File "C: \ Users \ ... \ GimpPortableSamj \ GimpEval-2.10-Win \ 64bit \ lib \ gimp \ 2.0 \ plugins \ layerfx_presets.py", line 73, in python_tt_bevel_and_emboss
pdb.python_layerfx_bevel_emboss (image, layer, style, depth, direction, size, soften, angle, altitude, glosscontour, highlightcolor, highlightmode, highlightopacity, shadowcolor, shadowmode, shadowopacity, surfacecontour, usetexture, pattern, texturescale, texturedepth, patterninvert, mergewithlayer)
RuntimeError: execution error
I'm not sure if I'm using this script right, but anyway, the first attempt I've got this error:
Error: Illegal value for argument 12.
Traceback (most recent call last):File "C: \ Users \ ... \ GimpPortableSamj \ GimpEval-2.10-Win \ 64bit \ lib \ gimp \ 2.0 \ python / gimpfu.py", line 740, in response
dialog.res = run_script (params)
File "C: \ Users \ ... \ GimpPortableSamj \ GimpEval-2.10-Win \ 64bit \ lib \ gimp \ 2.0 \ python / gimpfu.py", line 361, in run_script
return apply (function, params)
File "C: \ Users \ ... \ GimpPortableSamj \ GimpEval-2.10-Win \ 64bit \ lib \ gimp \ 2.0 \ plugins \ layerfx_presets.py", line 73, in python_tt_bevel_and_emboss
pdb.python_layerfx_bevel_emboss (image, layer, style, depth, direction, size, soften, angle, altitude, glosscontour, highlightcolor, highlightmode, highlightopacity, shadowcolor, shadowmode, shadowopacity, surfacecontour, usetexture, pattern, texturescale, texturedepth, patterninvert, mergewithlayer)
RuntimeError: execution error
- Attachments
"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
- tim
- View:
|Posts
- Topic Posts: 18/53 | Posts: 5211
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,218.22 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3067
- x 1012
- Contact:
That is odd, not sure why it's erroring out let's see if others are getting this error.
I wonder if it's just the Portable SamJ version that erroring out.
I wonder if it's just the Portable SamJ version that erroring out.
aka Tin
- tim
- View:
|Posts
- Topic Posts: 18/53 | Posts: 5211
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,218.22 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3067
- x 1012
- Contact:
argument 12 looks like highlightmode, did you try changing the highlight mode.
I only tested with Normal Mode.
I only tested with Normal Mode.
aka Tin
I believe I used Screen Mode in Highlight Mode.
Screen mode is the default in Bevel and Emboss.
But I've tested again now, and used Normal mode for highlight mode. It resulted in the same error message given earlier.
- Attachments
"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
- tim
- View:
|Posts
- Topic Posts: 18/53 | Posts: 5211
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,218.22 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3067
- x 1012
- Contact:
Anyone else getting error that Krikor is getting?
I can't seem to know why this error is happening
I can't seem to know why this error is happening
aka Tin
I have now tried with Portable Samj version 2.10.6.
But ... no changes, same errors are generated.
Version 2.10.8 according to Samj herself, has problems, isn't reliable.
I'll wait for version 2.10.9. But for now, I still prefer version 2.10.1
But ... no changes, same errors are generated.
Version 2.10.8 according to Samj herself, has problems, isn't reliable.
I'll wait for version 2.10.9. But for now, I still prefer version 2.10.1
"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
- tim
- View:
|Posts
- Topic Posts: 18/53 | Posts: 5211
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,218.22 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3067
- x 1012
- Contact:
Do you have regular GIMP (not SamJ's portable) maybe give that a try.
aka Tin
Tim, I had the same error but I managed to apply the plugin and make the preset this way:
If I change the parameters of the script, it shows the same bug Krikor had. In my tests, the error seems to be in the layer mode - it only crashes if the layer mode not on normal mode. Changing the others parameters don't seem to replicate the error.
I'm also using SamJ 2.10.6 portable version - couldn't make the Partha 2.10.8 work on my computer...
If I change the parameters of the script, it shows the same bug Krikor had. In my tests, the error seems to be in the layer mode - it only crashes if the layer mode not on normal mode. Changing the others parameters don't seem to replicate the error.
I'm also using SamJ 2.10.6 portable version - couldn't make the Partha 2.10.8 work on my computer...
- tim
- View:
|Posts
- Topic Posts: 18/53 | Posts: 5211
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,218.22 GLP
- Bank: 205,555,073.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3067
- x 1012
- Contact:
That's so odd because it's working for me for other layer modes as well.
aka Tin
| ||||
| ||||
|
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Only first time visitors will have to load everything from server
by tim » 25 Dec 2020, 13:35 » in GIMP/GL Interests - 1 Replies
- 273 Views
-
Last post by tim
25 Dec 2020, 14:14
-
-
- 0 Replies
- 959 Views
-
Last post by RJKD
02 Oct 2020, 13:21
-
- 0 Replies
- 628 Views
-
Last post by tim
23 Oct 2020, 12:28
-
- 2 Replies
- 537 Views
-
Last post by Jappaloe63
24 Nov 2020, 11:43
-
-
How do I crop bottom layer around top layer? - SOLVED
by enxio27 » 16 Mar 2020, 01:01 » in GIMP/GL Questions - 6 Replies
- 7389 Views
-
Last post by enxio27
18 Mar 2020, 03:41
-
-
-
Custom Font Perspex Effects for Gimp 2.10
by skinnyhouse » 03 Jun 2020, 11:50 » in GIMP Python Fu Scripts/Plug-ins - 5 Replies
- 3501 Views
-
Last post by skinnyhouse
13 Jun 2020, 19:21
-
-
-
Update to Custom Font Metallic Effects to 0.06 for Gimp 2.10.20
by skinnyhouse » 17 Jun 2020, 14:42 » in GIMP Python Fu Scripts/Plug-ins - 1 Replies
- 1728 Views
-
Last post by mahvin
17 Jun 2020, 22:54
-
Who is online
Users browsing this forum: No registered users and 21 guests