It is currently Thu Apr 25, 2024 7:18 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Mon Dec 17, 2018 2:12 pm  (#21) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
version 9 (hack to allow new layer modes [in addition to legacy modes] to be selected to be saved and applied as presets and loads works with these new layer modes as well)

_________________
TinT


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Tue Dec 18, 2018 10:10 am  (#22) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Sorry guys, just uploaded another version (10) last night.

As Dionisio found a bug.

The bug is that the "Load Preset Apply All" would fail after first effect is applied when Merge with layer is set to true because the newly merged layer is a new pointer so the old pointer is invalid.

So version 10 tries to apply series of effects on the layer by name so that it doesn't error out when we try to Merge with Layer option.

_________________
TinT


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Tue Dec 18, 2018 2:10 pm  (#23) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Seems to work okay, thank you.
I found an annoyance. If you edit any of the setting files you will get "layerfx_presets.py has messed the internal state blahblah..."
and the only thing to fix it, is to delete the corresponding setting file.
Wanted to test if it was possible to remove a single layer style from a preset.


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Tue Dec 18, 2018 4:26 pm  (#24) 
Offline
GimpChat Member
User avatar

Joined: Nov 28, 2018
Posts: 41
Location: Brazil
Enjoying it so much!
Tried following a plastic/glass text PS tutorial;
For some reason when I put the layer in normal mode, it made the whole image white-ish. Changing the layer mode to normal-legacy seemed to fix the problem.

Image


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Tue Dec 18, 2018 4:32 pm  (#25) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
I can edit the text files fine.
I added Dionisio's candle settings to 3 of the files and they work just fine.

_________________
TinT


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Tue Dec 18, 2018 4:50 pm  (#26) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
trandoductin wrote:
I can edit the text files fine.
I added Dionisio's candle settings to 3 of the files and they work just fine.

Okay, must have been something on my side.
Will play more later and try style conversion from old PS layer styles.


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 6:21 am  (#27) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
Pocholo wrote:
Hi Tim. I am sorry if I'm a "doofus" :gaah when it comes to this plugin that you created, but I cannot make it work. I placed the plugin where it suppose to, I done a bunch of thing to see if it appear as you said. When I go to: Layer> Layer Effects, I have the all the filters there: Bevel and Emboss, Color Overlay, Drop shadow... etc. I don't see the "Apply and Save/Load Preset" options. I want to experiment your improved layerfx definition, help me please. Thank you in advance!

I'm a Windows 10 user.

Nidhogg wrote:
Seems to work okay, thank you.
I found an annoyance. If you edit any of the setting files you will get "layerfx_presets.py has messed the internal state blahblah..."
and the only thing to fix it, is to delete the corresponding setting file.
Wanted to test if it was possible to remove a single layer style from a preset.

@Pocholo hi,
On December 15th last, I received this error message:
GIMP Error
Plug-in crashed: "layerfx_presets.py"
(C:\Users\...\plug-ins\layerfx_presets.py)
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.


Since then the menus for the layerfx_presets plugin have disappeared. After several unsuccessful attempts I gave up trying to use the plugin.

But after reading the @Nidhoog post, I had an idea, and luckily I finally got the plugin's menus back up.

Thank you for your help!


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 10:06 am  (#28) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Testing this awesome plugin, style needs more tweaking. Inner shadow is unnecessary and the edge is jaggy. It uses drop shadow to create a background for the other layer styles because the outer glow wouldn't show up otherwise. Foreground color must be white.
Canvas: 1024x256
Font: Alex Murphy Solid
Size: 300 points
Color: ffffff

bevel_emboss.txt:RoboComp|(image,layer,0, 20.0, 0, 14.0, 3.0, 30.0, 12.0, 0, (206, 40, 40), 53, 94.0, (65, 65, 65), 30, 50.0, 0, False, 'Pine', 100.0, 100.0, False, False)
drop_shadow.txt:RoboComp|(image,layer,(167, 167, 167), 100.0, 0, 0.0, 28, 95.0, 26.0, 120.0, 0.0, False, False)
inner_shadow.txt:RoboComp|(image,layer,(0, 0, 0), 75.0, 0, 0.0, 3, 1, 18.0, 2.0, 45.0, 2.0, False)
outer_glow.txt:RoboComp|(image,layer,'FG to Transparent', 70.0, 0, 20.0, 23, 12.0, 8.0, False, False)
pattern_overlay.txt:RoboComp|(image,layer,'Rain', 50.0, 30, 100.0, 3, False)
stroke.txt:RoboComp|(image,layer,(66, 66, 66), 80.0, 28, 2.0, 100.0, False)


Image


Last edited by Nidhogg on Wed Dec 19, 2018 10:25 am, edited 2 times in total.

Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 10:18 am  (#29) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Nidhogg,
Thanks for sharing the presets, but you should add a piece of info to each line (where each line came from so people'd know where to add the presets).

_________________
TinT


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 10:20 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Ahhh, of course. Fixed.


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 10:38 am  (#31) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Image

_________________
TinT


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 1:43 pm  (#32) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Krikor wrote:
Pocholo wrote:
Hi Tim. I am sorry if I'm a "doofus" :gaah when it comes to this plugin that you created, but I cannot make it work. I placed the plugin where it suppose to, I done a bunch of thing to see if it appear as you said. When I go to: Layer> Layer Effects, I have the all the filters there: Bevel and Emboss, Color Overlay, Drop shadow... etc. I don't see the "Apply and Save/Load Preset" options. I want to experiment your improved layerfx definition, help me please. Thank you in advance!

I'm a Windows 10 user.

Nidhogg wrote:
Seems to work okay, thank you.
I found an annoyance. If you edit any of the setting files you will get "layerfx_presets.py has messed the internal state blahblah..."
and the only thing to fix it, is to delete the corresponding setting file.
Wanted to test if it was possible to remove a single layer style from a preset.

@Pocholo hi,
On December 15th last, I received this error message:
GIMP Error
Plug-in crashed: "layerfx_presets.py"
(C:\Users\...\plug-ins\layerfx_presets.py)
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.


Since then the menus for the layerfx_presets plugin have disappeared. After several unsuccessful attempts I gave up trying to use the plugin.

But after reading the @Nidhoog post, I had an idea, and luckily I finally got the plugin's menus back up.

Thank you for your help!


@krikor; I still can't be able to see the layerfx Preset menu. It only gives me the Layer> Layer Effects menu. I put the file inside: C:\Users\User\AppData\Roaming\GIMP\2.10\plug-ins, like it suppose to and it doesn't even give me an error at least to have hope that is running in my Gimp. Maybe is a thing with Windows 10 or my PC.

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 2:23 pm  (#33) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
Pocholo wrote:
@krikor; I still can't be able to see the layerfx Preset menu. It only gives me the Layer> Layer Effects menu. I put the file inside: C:\Users\User\AppData\Roaming\GIMP\2.10\plug-ins, like it suppose to and it doesn't even give me an error at least to have hope that is running in my Gimp. Maybe is a thing with Windows 10 or my PC.


Hi Pocholo,
In the folder C: \ Users \ ... \ 64bit \ bin remove all files of type bevel_and_emboss, color_overlay, drop_shadow, gradient_overlay, inner_glow, inner_shadow, outer_glow, satin and stroke.
Remove all these files. - ( All files generated by layerfx_presents in bin folder (delete all) )

Try it and see if the layerfx_presents menu will now appear.


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 4:30 pm  (#34) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Krikor wrote:
Pocholo wrote:
@krikor; I still can't be able to see the layerfx Preset menu. It only gives me the Layer> Layer Effects menu. I put the file inside: C:\Users\User\AppData\Roaming\GIMP\2.10\plug-ins, like it suppose to and it doesn't even give me an error at least to have hope that is running in my Gimp. Maybe is a thing with Windows 10 or my PC.


Hi Pocholo,
In the folder C: \ Users \ ... \ 64bit \ bin remove all files of type bevel_and_emboss, color_overlay, drop_shadow, gradient_overlay, inner_glow, inner_shadow, outer_glow, satin and stroke.
Remove all these files. - ( All files generated by layerfx_presents in bin folder (delete all) )

Try it and see if the layerfx_presents menu will now appear.


Thank you for your help, I don't have that folder because in order that layerfx_presets.py generate that folder, probably is by execution. When I start Gimp, on the process, I can see the plugins that are starting in Gimp. Only layerfx.py shows up but not layerfx_presets.py.

If you're running Windows and the plugin works for you, that mean there is something in my PC that won't let this plugin start. Thanks again.

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Wed Dec 19, 2018 11:13 pm  (#35) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Pocholo,
try renaming "layerfx_presets.py" to something short like "a.py" and see if that does anything for you. It's worth a shot to see what happens.

_________________
TinT


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Thu Dec 20, 2018 12:55 am  (#36) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
Tim, I rename the file but somehow the plugin is not registering in Gimp. I open the pluginrc and only the layerfx.py is there but layerfx_presets is not there.

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Thu Dec 20, 2018 10:02 am  (#37) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
This is some odd ball.... I am so confused right now

_________________
TinT


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Thu Dec 20, 2018 10:09 am  (#38) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
New logo style, Znoritos! Wolf a bag and go to sleep.
NOTE! I'm using large font sizes with my custom styles, so that they can be used in HQ images and scaled down if needed.
If you apply these on standard 72p, they will obviously look bad and strange.
This was done with HandelGothic Bold 516p, white.
The example below is 50% of the original size.

Image

Settings

Drop Shadow:
Znoritos|(image,layer,(0, 0, 0), 100.0, 0, 0.0, 28, 100.0, 100.0, 120.0, 0.0, False, False)
Outer Glow:
Znoritos|(image,layer,(255, 0, 0), 100.0, 3, 0.0, 0, 26.0, 40.0, False, False)
Stroke:
Znoritos|(image,layer,(0, 0, 0), 100.0, 28, 15.0, 100.0, False)
Inner Shadow:
Znoritos|(image,layer,(206, 218, 216), 100.0, 0, 0.0, 3, 1, 100.0, 12.0, -55.0, 8.0, False)
Inner Glow:
Znoritos|(image,layer,(255, 255, 255), 100.0, 0, 0.0, 28, 1, 100.0, 4.0, False)


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Thu Dec 20, 2018 11:29 am  (#39) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Thanks again for sharing your presets Nidhogg

_________________
TinT


Top
 Post subject: Re: Apply and Save/Load Preset Script for Layer Effects (Experimental)
PostPosted: Thu Dec 20, 2018 3:25 pm  (#40) 
Offline
GimpChat Member
User avatar

Joined: Nov 28, 2018
Posts: 41
Location: Brazil
Nidhogg wrote:
New logo style, Znoritos! Wolf a bag and go to sleep.
NOTE! I'm using large font sizes with my custom styles, so that they can be used in HQ images and scaled down if needed.
If you apply these on standard 72p, they will obviously look bad and strange.
This was done with HandelGothic Bold 516p, white.
The example below is 50% of the original size.

[ Image ]

Settings

Drop Shadow:
Znoritos|(image,layer,(0, 0, 0), 100.0, 0, 0.0, 28, 100.0, 100.0, 120.0, 0.0, False, False)
Outer Glow:
Znoritos|(image,layer,(255, 0, 0), 100.0, 3, 0.0, 0, 26.0, 40.0, False, False)
Stroke:
Znoritos|(image,layer,(0, 0, 0), 100.0, 28, 15.0, 100.0, False)
Inner Shadow:
Znoritos|(image,layer,(206, 218, 216), 100.0, 0, 0.0, 3, 1, 100.0, 12.0, -55.0, 8.0, False)
Inner Glow:
Znoritos|(image,layer,(255, 255, 255), 100.0, 0, 0.0, 28, 1, 100.0, 4.0, False)


Very nice preset! It has a comic-like feel, I like it very much.
How did you achieve such a smooth look? My results get very "sharp" edges, I usually need to use some repair filter of G'MIC after applying all the layer styles to have a somewhat smooth edge.


Top
Post new topic Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts script to load text file and create text layer

6

No new posts Attachment(s) Unable to load an image as layer

16

No new posts Attachment(s) Apply Selection to Layer with LIVE PREVIEW

6

No new posts Watch Folder and load image as layer

1

No new posts Attachment(s) GEGL Jelly - Apply on Duplicate Layer above and use eraser

3



* Login  



Powered by phpBB3 © phpBB Group