It is currently Tue Apr 23, 2024 10:11 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 12:53 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
I can't get to work your density brush fill script, Ofnuts. Tried to run it in GIMP 2.6.11 and 2.8, with animated brushes and parametric ones, on single and multiple-layer images, with and without selection. The same error message
Image

Is that something i'm not doing right or...?


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: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 1:09 am  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
It only works on brushes with a .vbr extension so try it with circle or diagonal star brushes

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


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 1:32 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
OK, thanks Graechan! I'll try .vbr, which is parametric, although, the description in Plugin Registry only mentions current brush, moreover, the sample usage done with animated GIH brush.


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 1:40 am  (#4) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Actually the script works with all of my brushes. Not just the ones with the .vbr extension.

I don't get an error message with it. Running it in gimp 2.8.2 in Fedora 17.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 1:42 am  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
you could try this from RobA random_density_map

Attachment:
random_density_map.scm [6.26 KiB]
Downloaded 135 times

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


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 1:44 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
I've already tried Rob's script, thanks. It's just a bit slow, but works fine.


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 1:52 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Oregonian wrote:
Actually the script works with all of my brushes. Not just the ones with the .vbr extension.

I don't get an error message with it. Running it in gimp 2.8.2 in Fedora 17.


Thanks, O! Good to know it's working at least on Linux systems. First script in months that I could not get to work, will wait for response from Ofnuts (hopefully)


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 1:58 am  (#8) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
K1TesseraEna are you using windows also

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


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 2:03 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Yes, Windows, but it's a Python script, must work no matter what, the dependency is the Python package, not OS. Just 2 GIMP Python scripts that I know of are specific to Linux environment and wouldn't work under Windows.


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 3:01 am  (#10) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
K1TesseraEna wrote:
Yes, Windows, but it's a Python script, must work no matter what, the dependency is the Python package, not OS. Just 2 GIMP Python scripts that I know of are specific to Linux environment and wouldn't work under Windows.

Try the new version I just uploaded. Actually there is a subtle difference in Windows in the way the "print" instructions I use for debugging are handled. In Linux they are ignored, but in Windows the script crashes if the cumulated output goes above some size (4K or 8K, I don't remember).

_________________
Image


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 12:03 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Thank you, Ofnuts. It works now.
One question, though. It seems the script chooses arbitrary brush size rather than default or current size (picture below)
No option for brush size, because script intends to go with the current brush settings, but it's not happening. Why?
Image

ofnuts wrote:
Actually there is a subtle difference in Windows in the way the "print" instructions I use for debugging are handled. In Linux they are ignored, but in Windows the script crashes if the cumulated output goes above some size (4K or 8K, I don't remember).

I've looked up the changes to the script. I don't get it. I was under impression that all python scripts are supposed to work regardless of OS, with only stipulation being PyGTK, pycairo, pygobject, etc. installed. Well, at least in Plugin Registry there is no python script versions offered for different Os's. One of the Linux specific Python scripts I previously mentioned is Nuvola Tools. Is that a peculiarity of some of YOUR scripts containing "print" strings or there are some other scripts too? All of your paths and layer scripts that I have work just fine on Windows.
Thank you for quick response and updating the script!


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 3:53 pm  (#12) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
K1TesseraEna wrote:
Thank you, Ofnuts. It works now.
One question, though. It seems the script chooses arbitrary brush size rather than default or current size (picture below)
No option for brush size, because script intends to go with the current brush settings, but it's not happening. Why?
I've looked up the changes to the script. I don't get it. I was under impression that all python scripts are supposed to work regardless of OS, with only stipulation being PyGTK, pycairo, pygobject, etc. installed. Well, at least in Plugin Registry there is no python script versions offered for different Os's. One of the Linux specific Python scripts I previously mentioned is Nuvola Tools. Is that a peculiarity of some of YOUR scripts containing "print" strings or there are some other scripts too? All of your paths and layer scripts that I have work just fine on Windows.
Thank you for quick response and updating the script!


The version I uploaded also works on Linux. It's more how things run under Windows. On Linux standard output (which get the printed stuff) is always available and goes somewhere (/dev/null, a minima). On Windows it won't be available for programs not started from a command prompt. I think that the Python runtime doesn't notice and when the output reaches some cumulated size it tries to flush its internal buffer to stdout and things don't go very well then. Now (that one was one of my first) I remove the print statements before making my scripts public.

As to the brush size, there is no control over the brush size from the scripted side of the fence, so for bitmap brushes it takes the "native" size and for created brushes it takes the "designed" size.

_________________
Image


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Wed Dec 05, 2012 5:30 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Thank you ofnuts now works perfectly in Windows

For those who do not Know where to go for the new file density-brush-fill-0.2.py

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


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Fri Dec 14, 2012 10:10 am  (#14) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
This script makes some interesting animations. I keep playing with it. :hehe

Image

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Fri Dec 14, 2012 11:05 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Hi, O!
How did you do that? Let me guess, Mathmap? No?


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Fri Dec 14, 2012 12:27 pm  (#16) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
No mathmap. I picked out a brush and a gradient.

Later note: Forgot to say to set Dynamics to random color to pick up the gradient colors.

Then used the ellipse tool to make the shape and filled it with the gradient I chose. Kept the selection, then ran the script at 100% fill about 7 or 8 times for the layers. Each layer comes out differently.

Used the original gradient filled layer to combine behind the layers made by the script. That way any holes in the script filled layers would be filled.

Put a black bg behind each layer. Saved as animation.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Fri Dec 14, 2012 6:59 pm  (#17) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very nice O, love the colors in the green one
here is my ball.


Image

_________________
Image


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Sat Dec 15, 2012 9:12 am  (#18) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
ofnuts wrote:
As to the brush size, there is no control over the brush size from the scripted side of the fence, so for bitmap brushes it takes the "native" size and for created brushes it takes the "designed" size.


If you make a Dynamic that is Random Size, it works in the script. This is the result of using the black round brush that comes in gimp 2.8.2 with Random size and color set in the dynamics. (If you want random size / color dynamics you need to make them.)
Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Sun Dec 16, 2012 10:14 am  (#19) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
:lol Can't quit playing with this filter. This is a snowflake brush set to random size and color. The fg and bg colors are white. The density setting in the filter is 10.

Image

Little Snowflake brush attached if someone wants it.


Attachments:
littlesnowflakes.gih [25.27 KiB]
Downloaded 83 times

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein
Top
 Post subject: Re: Density brush fill (Ofnuts)
PostPosted: Sun Dec 16, 2012 11:04 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Oregonian wrote:
:lol Can't quit playing with this filter. This is a snowflake brush set to random size and color. The fg and bg colors are white. The density setting in the filter is 10.

[ Image ]

Little Snowflake brush attached if someone wants it.


That is a brand new way of making animated snow effect! Very cool example of density brush fill usage, O!


Top
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Made An Animated GIF With An Ofnuts Script

35

No new posts Attachment(s) Outline Layer Contents by Ofnuts

2

No new posts Attachment(s) Was Ofnuts' WrapMap 0.4 plug-in a casualty of v2.10?

12

No new posts Attachment(s) Fill with pattern seamless

13

No new posts Bucket fill white comes out as grey

4



* Login  



Powered by phpBB3 © phpBB Group