It is currently Fri Jul 05, 2024 10:58 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: pm_jean_texture_embroidery_text.py
PostPosted: Fri Aug 14, 2020 9:48 pm  (#1) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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 130 times
pm_jean_texture_embroidery_text.zip [2.29 KiB]
Downloaded 119 times

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


Last edited by Pocholo on Sat Aug 15, 2020 9:02 am, edited 1 time in total.
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 1:01 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12711
Location: Spain, Aragón
I'm having problems with this one.


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

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 5:00 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
"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


Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 6:41 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Little problem :bigthup


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

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 9:02 am  (#5) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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

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


Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 9:56 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12711
Location: Spain, Aragón
Sorry Pocholo, I get a new error message.


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

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 10:14 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
As advised by Mareroq - put your layers in legacy mode before running the script

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 10:23 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12711
Location: Spain, Aragón
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 2307 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 12:24 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
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)

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 2:21 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12711
Location: Spain, Aragón
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 2266 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 3:12 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12711
Location: Spain, Aragón
Thanks Pocholo.


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

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 6:36 pm  (#12) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Still fails on my machine
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 7:02 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Try the new LayerFX that MareroQ just modified. It should work then without modifications.
viewtopic.php?f=9&t=18682#p254675


Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 7:05 pm  (#14) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
@ 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.

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


Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 7:50 pm  (#15) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
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

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: pm_jean_texture_embroidery_text.py
PostPosted: Sat Aug 15, 2020 11:17 pm  (#16) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
No problem my friend, I'm glad you fixed it. :bigthup

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


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Create a jean texture.py (seamless)

13

No new posts Attachment(s) Paper Texture Help

10

No new posts Attachment(s) Vellum Texture

14

No new posts Attachment(s) Parchment texture

2

No new posts Attachment(s) Beautify Texture & Border Ver.2

3



* Login  



Powered by phpBB3 © phpBB Group