It is currently Thu Mar 28, 2024 9:37 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Asphalt.scm [creates Asphalt pattern]
PostPosted: Mon Feb 17, 2014 10:35 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
script uses Conbagui's method of creating asphalt located Here

Asphalt can create a pattern of Asphalt on drawable or within selection if one exists, requires the GMIC plugin to complete the pattern

Image

Image
Menu Location Script-Fu/Patterns

Used here to create a Road (opps forgot the road kill)
Image

Attachment:
Asphalt.scm [8.82 KiB]
Downloaded 187 times

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


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: Asphalt.scm [creates Asphalt pattern]
PostPosted: Tue Feb 18, 2014 1:07 am  (#2) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Thanks, Graechan.

Image

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Tue Feb 18, 2014 1:58 am  (#3) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
GnuTux I used your procedure to check for GMIC, I think it's better than receiving an error, it's perfect for scrips that use GMIC

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


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Tue Feb 18, 2014 3:30 am  (#4) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
I like the way you generate what you can, then popup the "Missing G'MIC" message, directing the user to install for best results.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Tue Feb 18, 2014 4:26 am  (#5) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very nice Graechan, thank you.

_________________
Image


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Tue Feb 18, 2014 2:56 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7301
Location: Göteborg at last!
Thank you yet again Graechan. Heaven is missing an angel! :hi5


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Tue Feb 18, 2014 3:33 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Mar 18, 2011
Posts: 283
Location: Lusaka, Zambia
Hi,

Do we have a script that generates cosmo galaxy? I would really love one that can simplify the process and if possible with a feature to select the orientation, density etc.

BTW, I am not a scientist but just a fun of the cosmology.

Thanx.


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Tue Feb 18, 2014 11:36 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Josephbupe you could try the Astronomy suite of plugins and scripts available for windows Here
Image

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


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Wed Feb 19, 2014 12:11 am  (#9) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
  (let* ((draw-offset-x (car (gimp-drawable-offsets drawable)))
         :
         :
         (diff-clouds   (car (gimp-layer-new image width height type
                                             "Clouds" 100 DIFFERENCE-MODE)))
         :
         :
        )

    (gimp-image-undo-group-start image)


Graechan, I would point out that the above coding presents a memory leak potential in that it is creating a new layer before the UNDO history is grouped. Should the user perform an UNDO after running your 'asphalt-difference-clouds' procedure, the 'diff-clouds' layer will be removed from the image (since it was added inside the UNDO group), but its creation will not be undone and the layer will occupy memory until GIMP is quit.

For your 'script-fu-asphalt', script this problem won't ever arise, since the entire script -- including the call to 'asphalt-difference-clouds' -- is itself wrapped in an UNDO group. Nonetheless, I wanted to point it out so that you were aware of what might happen in other cases.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Wed Feb 19, 2014 1:27 am  (#10) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
SaulGoode The 'script-fu-difference-clouds' is a default gimp script and I can see what you mean, but it just didn't occur to me to check the script.
I only added it to my script so that I could change the solid-noise plugin it uses to RUN-NONINTERACTIVE and to change the insert layer to something that would run on 2.6 and 2.8

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


Top
 Post subject: Re: Asphalt.scm [creates Asphalt pattern]
PostPosted: Wed Feb 19, 2014 1:32 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Mar 18, 2011
Posts: 283
Location: Lusaka, Zambia
Graechan wrote:
Josephbupe you could try the Astronomy suite of plugins and scripts available for windows Here
[ Image ]


Thanx I appreciate.


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Colorful Pattern from Text (Text Pattern) Plug-in

32

No new posts Attachment(s) Seamless Pattern - Help please

3

No new posts Attachment(s) Pattern Editor

1

No new posts Attachment(s) Photoshop pattern

6

No new posts brush tool + pattern

3



* Login  



Powered by phpBB3 © phpBB Group