It is currently Sat Jun 06, 2026 12:31 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 2:10 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
The script is available there:

http://gimp-tools.sourceforge.net/

Here for the doc: http://gimp-tools.sourceforge.net/tools.shtml
And here for the script: https://sourceforge.net/projects/gimp-t ... s/scripts/

As usual, bug reports, comments, and suggestions gladly accepted.

Have fun.

_________________
Image


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: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 2:49 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
I had to change gimp_histogram parameters to 255, because the plug-in threw errors as 256 not being acceptable.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 3:15 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
mahvin wrote:
I had to change gimp_histogram parameters to 255, because the plug-in threw errors as 256 not being acceptable.
What Gimp version do you run? My PDB browser (2.6.8) says: End of the intensity measurement range (0 <= end-range <= 256)
. What says yours?

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 3:25 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
2.6.11

End of the intensity measurement range (0 <= end-range <= 255)

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 3:25 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12775
The GIMP gurus changed the range parameter, I believe, in GIMP 2.6.9 ofnuts. Though 0 to 255 is binarily correct, it's been 256 for years, but, they decided an over-site needed correction and it made a lot of folks perturbed to say the least. Just ask RobA. lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 3:40 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Okay will switch to 255 :-) SourceForge updated with version 0.1

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 7:13 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16011
I got an error window running the script on a layer with an image (rgb) with alpha channel
These settings
Image
The error said "9"

I have no idea what that means - lol
But it left the drawing in an undo state and quit. :)

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 8:01 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Rod wrote:
I got an error window running the script on a layer with an image (rgb) with alpha channel
These settings

The error said "9"

I have no idea what that means - lol
But it left the drawing in an undo state and quit. :)

Neither do I... and I can't reproduce. Which version are you using? 0.0 or 0.1?

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 8:14 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16011
0.1

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 8:22 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
For the record, I performed the same process using Rod's information (using Ubuntu) and did not get any errors. I've run close to 15 attempts, on various layers using alpha channels.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 9:07 pm  (#11) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16011
I am using Windows XP 32 bit ofnuts.
Don't know if that helps or not.I still get the same error though.Even on just a new transparent layer.
I wonder if another plug-in or py script is interfering with it?

I do not have very many plug-ins in my plug-in folder anymore (cleaned house).
So it wouldn't be hard to find the culprit by using the process of elimination. :)

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sat May 21, 2011 9:24 pm  (#12) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16011
Cheese Error take 1 :lol
http://simplysignage.110mb.com/Cheese.wmv

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sun May 22, 2011 12:44 am  (#13) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Offnuts I saw something different when using the filter.

From This

Image

To These Asteroids using GMIC's Ink Wash

Image

But wth these errors

ImageImage

Using version 0.1 with 2-6-11 and Windows

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


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sun May 22, 2011 1:22 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2010
Posts: 4050
Image

I fell down the rabbit hole and got lost, with only a calculator to find my way out.

I'll let you "do the math" to figure out how I obtained this image from your random ellipses plug-in.

:)

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sun May 22, 2011 3:22 am  (#15) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
From what Gimp says, the message in the result of a pdb.gimp_message() and there is only one in the script, in catch-all-errors block?. So '9' comes from Python. Does it occur with other images and/or other settings?

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sun May 22, 2011 10:59 am  (#16) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
Image

No problems with it here.

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


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sun May 22, 2011 12:12 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Love your opals falling out of the sky "0" must be in Australia.....

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sun May 22, 2011 2:46 pm  (#18) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16011
With different settings i no longer get the "9" error , but the script still quits.
The settings i used this time
Image

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sun May 22, 2011 3:13 pm  (#19) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Rod wrote:
With different settings i no longer get the "9" error , but the script still quits.
The settings i used this time
Image

What do you mean by "quits"?

Get version 0.2 from Sourceforge (just uploaded) and run in gimp-console. It prints some information (v0.1 also does, but I improved the error catching). Then copy the last dozen of messages here.

When using overlap=no, the script can stop before achieving the requested density if it's too high. It stops after 10 consecutive unsuccessful attempts to find an ellipse that fits somewhere. In practice you can't really achieve more than 30% density without overlap, unless you are extremely lucky.

_________________
Image


Top
 Post subject: Re: Cheesy random ellipses generator
PostPosted: Sun May 22, 2011 4:04 pm  (#20) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
I changed from v0.1 to v0.2 and it is working fine for me. I can't tell any difference in the versions.

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


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

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group