GIMP Chat
http://gimpchat.com/

Density brush fill (Ofnuts)
http://gimpchat.com/viewtopic.php?f=9&t=5922
Page 1 of 2

Author:  K1TesseraEna [ Wed Dec 05, 2012 12:53 am ]
Post subject:  Density brush fill (Ofnuts)

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...?

Author:  Graechan [ Wed Dec 05, 2012 1:09 am ]
Post subject:  Re: Density brush fill (Ofnuts)

It only works on brushes with a .vbr extension so try it with circle or diagonal star brushes

Author:  K1TesseraEna [ Wed Dec 05, 2012 1:32 am ]
Post subject:  Re: Density brush fill (Ofnuts)

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.

Author:  Oregonian [ Wed Dec 05, 2012 1:40 am ]
Post subject:  Re: Density brush fill (Ofnuts)

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.

Author:  Graechan [ Wed Dec 05, 2012 1:42 am ]
Post subject:  Re: Density brush fill (Ofnuts)

you could try this from RobA random_density_map

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

Author:  K1TesseraEna [ Wed Dec 05, 2012 1:44 am ]
Post subject:  Re: Density brush fill (Ofnuts)

I've already tried Rob's script, thanks. It's just a bit slow, but works fine.

Author:  K1TesseraEna [ Wed Dec 05, 2012 1:52 am ]
Post subject:  Re: Density brush fill (Ofnuts)

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)

Author:  Graechan [ Wed Dec 05, 2012 1:58 am ]
Post subject:  Re: Density brush fill (Ofnuts)

K1TesseraEna are you using windows also

Author:  K1TesseraEna [ Wed Dec 05, 2012 2:03 am ]
Post subject:  Re: Density brush fill (Ofnuts)

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.

Author:  ofnuts [ Wed Dec 05, 2012 3:01 am ]
Post subject:  Re: Density brush fill (Ofnuts)

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).

Author:  K1TesseraEna [ Wed Dec 05, 2012 12:03 pm ]
Post subject:  Re: Density brush fill (Ofnuts)

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!

Author:  ofnuts [ Wed Dec 05, 2012 3:53 pm ]
Post subject:  Re: Density brush fill (Ofnuts)

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.

Author:  Graechan [ Wed Dec 05, 2012 5:30 pm ]
Post subject:  Re: Density brush fill (Ofnuts)

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

Author:  Oregonian [ Fri Dec 14, 2012 10:10 am ]
Post subject:  Re: Density brush fill (Ofnuts)

This script makes some interesting animations. I keep playing with it. :hehe

Image

Image

Author:  K1TesseraEna [ Fri Dec 14, 2012 11:05 am ]
Post subject:  Re: Density brush fill (Ofnuts)

Hi, O!
How did you do that? Let me guess, Mathmap? No?

Author:  Oregonian [ Fri Dec 14, 2012 12:27 pm ]
Post subject:  Re: Density brush fill (Ofnuts)

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.

Author:  molly [ Fri Dec 14, 2012 6:59 pm ]
Post subject:  Re: Density brush fill (Ofnuts)

Very nice O, love the colors in the green one
here is my ball.


Image

Author:  Oregonian [ Sat Dec 15, 2012 9:12 am ]
Post subject:  Re: Density brush fill (Ofnuts)

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

Author:  Oregonian [ Sun Dec 16, 2012 10:14 am ]
Post subject:  Re: Density brush fill (Ofnuts)

: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 84 times

Author:  K1TesseraEna [ Sun Dec 16, 2012 11:04 am ]
Post subject:  Re: Density brush fill (Ofnuts)

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!

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