GIMP Chat
http://gimpchat.com/

pm_jean_texture_embroidery_text.py
http://gimpchat.com/viewtopic.php?f=9&t=18681
Page 1 of 1

Author:  Pocholo [ Fri Aug 14, 2020 9:48 pm ]
Post subject:  pm_jean_texture_embroidery_text.py

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

**Multi line text added

Attachments:
pm_jean_texture_embroidery_text version 2.zip [2.38 KiB]
Downloaded 132 times
pm_jean_texture_embroidery_text.zip [2.29 KiB]
Downloaded 119 times

Author:  Issabella [ Sat Aug 15, 2020 1:01 am ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

I'm having problems with this one.

Attachments:
Error.jpg
Error.jpg [ 156.82 KiB | Viewed 2438 times ]

Author:  racer-x [ Sat Aug 15, 2020 5:00 am ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

"Stroke Warning"
Getting Error: Illegal value for argument 2.

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

Author:  MareroQ [ Sat Aug 15, 2020 6:41 am ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

Little problem :bigthup

Attachments:
Hint for the author.png
Hint for the author.png [ 1.58 MiB | Viewed 2371 times ]

Author:  Pocholo [ Sat Aug 15, 2020 9:02 am ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

It seem that the Layerfx on this particular line it's not working for Issabellas portable version and for Racer Linux?

pdb.python_layer_fx_stroke(img, copyLayer,
                     (160, 160, 0),   #color
                              40,   #opacity
                              42,   #mode-dodge
                              3,   #size
                             100,  #position
                           FALSE)   #merge



Image


I like MareroQ multi line effect, so I added to the second version with an extra line spacing and multi lines. :hehe

Author:  Issabella [ Sat Aug 15, 2020 9:56 am ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

Sorry Pocholo, I get a new error message.

Attachments:
A new error.jpg
A new error.jpg [ 136.95 KiB | Viewed 2332 times ]

Author:  nelo [ Sat Aug 15, 2020 10:14 am ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

As advised by Mareroq - put your layers in legacy mode before running the script

Author:  Issabella [ Sat Aug 15, 2020 10:23 am ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

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.

Attachments:
if it is, this doesn't work.jpg
if it is, this doesn't work.jpg [ 10.07 KiB | Viewed 2323 times ]

Author:  MareroQ [ Sat Aug 15, 2020 12:24 pm ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

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:
42,    #mode-dodge

to:
16,     # LAYER-MODE-DODGE-LEGACY (16)



line 142
replace:
LAYER_MODE_MULTIPLY,   #mode

to:
3,   # LAYER_MODE_MULTIPLY_LEGACY (3)

Author:  Issabella [ Sat Aug 15, 2020 2:21 pm ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

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!!!!! :jumpclap

Attachments:
Thanks MareroQ.jpg
Thanks MareroQ.jpg [ 1.71 MiB | Viewed 2282 times ]

Author:  Issabella [ Sat Aug 15, 2020 3:12 pm ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

Thanks Pocholo.

Attachments:
Something I like to read_Issa.jpg
Something I like to read_Issa.jpg [ 3.17 MiB | Viewed 1494 times ]

Author:  Graechan [ Sat Aug 15, 2020 6:36 pm ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

Still fails on my machine
Image

Author:  racer-x [ Sat Aug 15, 2020 7:02 pm ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

Try the new LayerFX that MareroQ just modified. It should work then without modifications.
viewtopic.php?f=9&t=18682#p254675

Author:  Pocholo [ Sat Aug 15, 2020 7:05 pm ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

@ Issabella, I'm glad you took MareroQ advise and got it fixed. Thanks for the comment! :hi5

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.

Author:  Graechan [ Sat Aug 15, 2020 7:50 pm ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

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

Author:  Pocholo [ Sat Aug 15, 2020 11:17 pm ]
Post subject:  Re: pm_jean_texture_embroidery_text.py

No problem my friend, I'm glad you fixed it. :bigthup

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/