GIMP Chat
http://gimpchat.com/

Denim Script
http://gimpchat.com/viewtopic.php?f=9&t=9630
Page 1 of 1

Author:  fencepost [ Thu Jan 30, 2014 9:44 am ]
Post subject:  Denim Script

Image

This script is based on my Denim Tutorial and will create the basic denim background for you. It's up to you to create the seams, folds, stitching. :)

The attached zip file contains the script and pattern which is necessary to create the texture. Once added to GIMP, you can find the script under Filters > Render > Denim... You pick the color, hit OK and the script does the rest.

Enjoy!

Attachments:
denim_gimp_script_by_fencepost.zip [1.99 KiB]
Downloaded 262 times

Author:  Rod [ Thu Jan 30, 2014 11:37 am ]
Post subject:  Re: Denim Script

Fantastic fencepost! Thank you. :)

Author:  fencepost [ Thu Jan 30, 2014 12:18 pm ]
Post subject:  Re: Denim Script

No problem!

Author:  Erisian [ Thu Jan 30, 2014 4:21 pm ]
Post subject:  Re: Denim Script

Thanks FP.

Author:  mackenzieh [ Fri Dec 13, 2019 2:07 pm ]
Post subject:  Re: Denim Script

I get an error when running this script:
Image

Author:  racer-x [ Fri Dec 13, 2019 2:47 pm ]
Post subject:  Re: Denim Script

The parameters it uses for bump-map are for older versions of Gimp and out of range for Gimp2.10x bump-map. You just need to edit the parameters to match the current bump-map range in the script. This will present a good opportunity for you to learn how to edit scripts....

Author:  mackenzieh [ Fri Dec 13, 2019 2:53 pm ]
Post subject:  Re: Denim Script

racer-x wrote:
The parameters it uses for bump-map are for older versions of Gimp and out of range for Gimp2.10x bump-map. You just need to edit the parameters to match the current bump-map range in the script. This will present a good opportunity for you to learn how to edit scripts....


If I were to edit this script, what line would I change?

Author:  racer-x [ Fri Dec 13, 2019 3:01 pm ]
Post subject:  Re: Denim Script

I haven't installed this script, but reading it, I would guess you should start editing line 70.

Author:  mackenzieh [ Fri Dec 13, 2019 3:10 pm ]
Post subject:  Re: Denim Script

racer-x wrote:
I haven't installed this script, but reading it, I would guess you should start editing line 70.


I'm not a coder and I looked at it. I'm not sure what numbers to change or if I have to change them each time I use the script. So I will leave it up to the coders.

Author:  racer-x [ Fri Dec 13, 2019 3:48 pm ]
Post subject:  Re: Denim Script

Well I just installed this script out of curiosity, I then edited it successfully by changing one parameter. The error reports water elevation out of range @255. If you run Bump-Map on an image, you will see that Water Elevation runs from 0 - 1.

So what number do you think you need to change in line 70?

(plug-in-bump-map RUN-NONINTERACTIVE image denimLayer patternLayer 135.0 45.0 3 0 0 255 0 TRUE TRUE 2)

Author:  mackenzieh [ Fri Dec 13, 2019 4:27 pm ]
Post subject:  Re: Denim Script

racer-x wrote:
Well I just installed this script out of curiosity, I then edited it successfully by changing one parameter. The error reports water elevation out of range @255. If you run Bump-Map on an image, you will see that Water Elevation runs from 0 - 1.

So what number do you think you need to change in line 70?

(plug-in-bump-map RUN-NONINTERACTIVE image denimLayer patternLayer 135.0 45.0 3 0 0 255 0 TRUE TRUE 2)


I'd have to change 255. I will try that. I made the change and it works. :)

Author:  racer-x [ Fri Dec 13, 2019 4:37 pm ]
Post subject:  Re: Denim Script

Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for life.

Author:  mackenzieh [ Fri Dec 13, 2019 4:52 pm ]
Post subject:  Re: Denim Script

racer-x wrote:
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for life.


Agreed! :) I'm just not a coding person but I will try.

Author:  racer-x [ Fri Dec 13, 2019 5:29 pm ]
Post subject:  Re: Denim Script

I'm not a coder either. Something like this is like through spaghetti against a wall to see if it sticks.........

Author:  mackenzieh [ Fri Dec 13, 2019 10:31 pm ]
Post subject:  Re: Denim Script

I agree.

Author:  Wallace [ Sat Dec 14, 2019 1:14 am ]
Post subject:  Re: Denim Script

racer-x wrote:
I'm not a coder either.
Something like this is like through spaghetti against a wall to see if it sticks.........

Love the "spaghetti against a wall" trick.
:hehe

Author:  dinasset [ Sat Dec 14, 2019 4:22 am ]
Post subject:  Re: Denim Script

change the line into:
(plug-in-bump-map RUN-NONINTERACTIVE image denimLayer patternLayer 135.0 45.0 3 0 0 1.0 0 TRUE TRUE 2) ;;;255>1.0

Author:  dinasset [ Sat Dec 14, 2019 6:39 am ]
Post subject:  Re: Denim Script

@Mackenzieh
If you prefer, this is the script converted into python
Attachment:
fp_denim_script_py.7z [1.03 KiB]
Downloaded 122 times

Author:  dinasset [ Sat Dec 14, 2019 8:45 am ]
Post subject:  Re: Denim Script

Remember the script requires
Attachment:
diagscanline3.pat [138 Bytes]
Downloaded 73 times

Author:  mackenzieh [ Sat Dec 14, 2019 5:59 pm ]
Post subject:  Re: Denim Script

Thanks for the python version. I have the scheme version working. :)

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