Post all Gimp scripts and script writing questions here
Fri Aug 14, 2020 9:48 pm
I seem around here a couple of "Embroidery efects", I want to share another own script using just GIMP filters, (Sinus filter, layerfx.py). I recreated the denim texture and the embroidery effect using "Sinus filter". Any way, comments are welcome!
Ps **Make sure you have the "layerfx.py" before you run this script.
![Image](http://gimpchat.com/files/6266_Ebroidery%20text%20effect.jpg)
**Multi line text added
Sat Aug 15, 2020 1:01 am
I'm having problems with this one.
Sat Aug 15, 2020 5:00 am
"Stroke Warning"
Getting Error: Illegal value for argument 2.
- Code:
Traceback (most recent call last):
File "/tmp/tmp.DZHHqNVPRn/gimp/2.0/python/gimpfu.py", line 740, in response
dialog.res = run_script(params)
File "/tmp/tmp.DZHHqNVPRn/gimp/2.0/python/gimpfu.py", line 361, in run_script
return apply(function, params)
File "/home/racer/.config/GIMP-AppImage/2.10/plug-ins/pm_jean_texture_embroidery_text.py", line 117, in pm_jean_texture_embroidery_text
FALSE) #merge
RuntimeError: execution error
Sat Aug 15, 2020 6:41 am
Little problem
Sat Aug 15, 2020 9:02 am
It seem that the Layerfx on this particular line it's not working for Issabellas portable version and for Racer Linux?
- Code:
pdb.python_layer_fx_stroke(img, copyLayer,
(160, 160, 0), #color
40, #opacity
42, #mode-dodge
3, #size
100, #position
FALSE) #merge
![Image](http://gimpchat.com/files/6266_Ebroidery%20text%20effect%201.jpg)
I like MareroQ multi line effect, so I added to the second version with an extra line spacing and multi lines.
Sat Aug 15, 2020 9:56 am
Sorry Pocholo, I get a new error message.
Sat Aug 15, 2020 10:14 am
As advised by Mareroq - put your layers in legacy mode before running the script
Sat Aug 15, 2020 10:23 am
MareroQ and nelo, thanks for your help. I have one only layer before running the script. and how set the layer to legacy mode? if if it is there, the script doesn't work properly either
Thanks.
Sat Aug 15, 2020 12:24 pm
In my opinion, two changes to the code are needed because 2x the new mode was used for calling layerFX (safest as values, not name - because there are different versions).
In pm_jean_texture_embroidery_text version 2
line 115
replace:
- Code:
42, #mode-dodge
to:
- Code:
16, # LAYER-MODE-DODGE-LEGACY (16)
line 142
replace:
- Code:
LAYER_MODE_MULTIPLY, #mode
to:
- Code:
3, # LAYER_MODE_MULTIPLY_LEGACY (3)
Sat Aug 15, 2020 2:21 pm
MareroQ, Thank you so much for your help. I changed the lines you said in spite of being afraid of changing a code I don't understand, I did it and ... YES!!!!!! it works great now and no problem at all. I'm happy as I like this effect so much.
Good!!!!!
Sat Aug 15, 2020 3:12 pm
Thanks Pocholo.
Sat Aug 15, 2020 6:36 pm
Still fails on my machine
![Image](http://gimpchat.com/files/707_Graechan-2020-08-16-09-31-86154.png)
Sat Aug 15, 2020 7:02 pm
Try the new LayerFX that MareroQ just modified. It should work then without modifications.
viewtopic.php?f=9&t=18682#p254675
Sat Aug 15, 2020 7:05 pm
@ Issabella, I'm glad you took MareroQ advise and got it fixed. Thanks for the comment!
I'm running the script on the original version GIMP 2.10.20 and it do not distinguish if it is in "Default Mode or Legacy Mode. But I see the error showed in Issabella and Graechan is on the Portable version. I don't know what SamJ changed in his portable version that make this constant error in the Mode option.
@ Graechan, I guess you're going to do what MareroQ explained, change the Layer Mode option to Legacy.
Sat Aug 15, 2020 7:50 pm
Pocholo everything now OK, after studying the error and your file I added the layerFX-2-10 file, sorry to bother you with what I should have fixed
Sat Aug 15, 2020 11:17 pm
No problem my friend, I'm glad you fixed it.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.