It is currently 26 Jan 2021, 16:12
| ||||
| ||||
|
|

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

Re: Apply and Save/Load Preset Script for Bevel and Emboss (Experimental)
Tim, as reported by Dionísio, keeping the modes in Normal Mode, the script works. I was able to save and then load the created present.Dionísio wrote: ↑14 Dec 2018, 17:34Tim, 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...
I then manually changed the modes for Screen and Multiply.
It seems that the errors are somehow associated with the change of the Modes.
BTW, in what folder are the created presets stored?
"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, it seems the problem only occurs with Shadow Mode.
Changing only the Highlight Mode to Screen, and keeping Shadow Mode in Normal, the script works.
Changing only the Highlight Mode to Screen, and keeping Shadow Mode in Normal, the script works.
"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
My presets were created in \Gimp-2.10.6_Portable-32bit-64bits\bin, as a .txt (bevel_and_emboss.txt)
- tim
- View:
|Posts
- Topic Posts: 18/53 | Posts: 5237
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,662.88 GLP
- Bank: 215,832,827.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3073
- x 1025
- Contact:
Thanks for testing guys.
Since Krikor let me know that changing shadow mode produces the error, I was able to produce the error.
And it had nothing to do with the mode, but the color was GimpRGB, changing the color to a 3 item tuple (R,G,B) seemed to have fixed the error.
Please give version 3 (posted in 1st post) a try...
And let me know if it's useful enough to apply this same idea to other layer effects.
In version 3, I have also defaulted highlightmode to SCREEN and shadowmode to DIVIDE as those are defaults for bevel and emboss.
PS. I think the script just writes bevel_and_emboss.txt to whichever active folder you execute GIMP from.
Since Krikor let me know that changing shadow mode produces the error, I was able to produce the error.
And it had nothing to do with the mode, but the color was GimpRGB, changing the color to a 3 item tuple (R,G,B) seemed to have fixed the error.
Please give version 3 (posted in 1st post) a try...
And let me know if it's useful enough to apply this same idea to other layer effects.
In version 3, I have also defaulted highlightmode to SCREEN and shadowmode to DIVIDE as those are defaults for bevel and emboss.
PS. I think the script just writes bevel_and_emboss.txt to whichever active folder you execute GIMP from.
aka Tin
Tim, at least for me, the default is Screen and Multiply (and not Divide).tim wrote: ↑14 Dec 2018, 21:39Thanks for testing guys.
[...]
Please give version 3 (posted in 1st post) a try...
And let me know if it's useful enough to apply this same idea to other layer effects.
In version 3, I have also defaulted highlightmode to SCREEN and shadowmode to DIVIDE as those are defaults for bevel and emboss.
PS. I think the script just writes bevel_and_emboss.txt to whichever active folder you execute GIMP from.

"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
Results using version 3:
If in Shadow-Mode I select Multiply, it still gives the same error as before.
If I leave in Shadow-Mode as Divide, the script works, but ...:
01) The layer that should be in the Screen (Highlight Mode) mode appears as Multiply mode.
02) The layer that should be in Divide mode (Shadow-Mode), appears as Value (HSV) (I)
Always in Legacy format.
If in Shadow-Mode I select Multiply, it still gives the same error as before.
If I leave in Shadow-Mode as Divide, the script works, but ...:
01) The layer that should be in the Screen (Highlight Mode) mode appears as Multiply mode.
02) The layer that should be in Divide mode (Shadow-Mode), appears as Value (HSV) (I)
Always in Legacy format.
"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: 5237
- Joined: 26 Sep 2016, 00:16
- Cash on hand: 75,662.88 GLP
- Bank: 215,832,827.00 GLP
- Gender: Guy
- Location: Canada
- GIMP Version: 2.10.X
- Paint Blotches blog
- Play them songs blog
- Personal Blog
- x 3073
- x 1025
- Contact:
try version 4.
It only calls the layerfx bevel and emboss it doesn't makes any changes regarding the Legacy issue.
I don't know how to change the original script to deal with new layer modes.
I wonder if it's just a matter of allowing use to choose the new layer modes and calling bevel and emboss would just work then that would be easy to do I am gonna go try and test and see what happens.
It only calls the layerfx bevel and emboss it doesn't makes any changes regarding the Legacy issue.
I don't know how to change the original script to deal with new layer modes.
I wonder if it's just a matter of allowing use to choose the new layer modes and calling bevel and emboss would just work then that would be easy to do I am gonna go try and test and see what happens.
aka Tin
Seems ok now Tim !!


"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
Working fine for me! The script is working even changing the layer mode and is making the presets just fine.
I think it will be very cool to have this plugin for the others effects as well. Would it be possible, for example, to call multiple presets at the same time? (something like a bevel/emboss + outer glow)
Because them it would be possible to ''translate'' Photoshop's pre-made styles to GIMP and make them available as a new type of resource.

I think it will be very cool to have this plugin for the others effects as well. Would it be possible, for example, to call multiple presets at the same time? (something like a bevel/emboss + outer glow)
Because them it would be possible to ''translate'' Photoshop's pre-made styles to GIMP and make them available as a new type of resource.
My result. I think this plugin is very cool.
This was the preset generated:
woodeffect|(image,layer,1, 65.0, 1, 10.0, 0.0, 120.0, 30.0, 0, (255, 255, 255), 16, 75.0, (0, 0, 0), 3, 75.0, 0, False, 'Pine', 100.0, 100.0, False, False)
This was the preset generated:
woodeffect|(image,layer,1, 65.0, 1, 10.0, 0.0, 120.0, 30.0, 0, (255, 255, 255), 16, 75.0, (0, 0, 0), 3, 75.0, 0, False, 'Pine', 100.0, 100.0, False, False)
| ||||
| ||||
|
-
- 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
- 325 Views
-
Last post by tim
25 Dec 2020, 14:14
-
-
- 0 Replies
- 985 Views
-
Last post by RJKD
02 Oct 2020, 13:21
-
- 0 Replies
- 657 Views
-
Last post by tim
23 Oct 2020, 12:28
-
- 2 Replies
- 572 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
- 7447 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
- 3534 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
- 1748 Views
-
Last post by mahvin
17 Jun 2020, 22:54
-
Who is online
Users browsing this forum: No registered users and 31 guests