Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Shape-Grid zip

Sat Apr 23, 2011 9:21 am

Here you go guys 4 scripts that all create different shapes on grids.
Hexagon


Octagon


Rectangle


Diamonds


The zip is attached with the scm and the png example files.
Thanks Rob and Sam :)

You will find the scripts here

Re: Shape-Grid zip

Sat Apr 23, 2011 9:48 am

Thank Rod!

Re: Shape-Grid zip

Sat Apr 23, 2011 10:07 am

You are very welcome PC. :)

Re: Shape-Grid zip

Sat Apr 23, 2011 12:41 pm

Thanks Rod. Got them and will play now. :)

Liana

Re: Shape-Grid zip

Sun Apr 24, 2011 11:47 am

Thanks, Rod, for taking the time to do that and sharing your results. :bigthup

Image

Re: Shape-Grid zip

Sun Apr 24, 2011 1:44 pm

Rod, do you mind if I combine these 4 into a single python script? I don't like cluttering the menus...

Re: Shape-Grid zip

Sun Apr 24, 2011 3:02 pm

It seems a great idea.
Maybe if is not too much complex, you may combine also those 2 (yes 1 link but 2 scripts there)
http://registry.gimp.org/node/25206
...and there is also http://registry.gimp.org/node/15852

...maybe not all may be integrated but the more the better
(argh ...my spell checker stopped to work, this doesn't sound as good english)

Re: Shape-Grid zip

Sun Apr 24, 2011 5:48 pm

@DD
please if you may combine easily that 4 or 5 scripts, don't care too much to integrate others if that add too much complexity (here i think also to complexity for the GUI, gimp scripts don't offer much
options for the GUI)

and BTW i forgot that there is even another and somehow similar grid script
http://registry.gimp.org/node/25244

Re: Shape-Grid zip

Sun Apr 24, 2011 6:57 pm

dd wrote:Rod, do you mind if I combine these 4 into a single python script? I don't like cluttering the menus...


Not at all.
I'd like just one myself if it's possible. :)

Re: Shape-Grid zip

Sun Apr 24, 2011 8:03 pm

dd wrote:Rod, do you mind if I combine these 4 into a single python script? I don't like cluttering the menus...

that sounds fabulous to me......having a billion scripts all over the place always confuses me :bawl

Re: Shape-Grid zip

Mon Apr 25, 2011 12:56 am

Ok, I'll start working on it... PC, I'll combine these 4 and the circular one for now, I'll see later if there's some functionality I can add.

Re: Shape-Grid zip

Mon Apr 25, 2011 1:23 am

dd: As they work now, you cannot create secondary layers of different sizes (the single scripts offered by Rod). The only way to obtain secondary layers, at the moment, is to grow or shrink the selections and create a new layer. Sam did update the circles grid script to add layers, but I was thinking how cool it would be to use any shape, of any size, on additional layers. Just a thought.

Re: Shape-Grid zip

Mon Apr 25, 2011 5:32 am

Ok, here it is - all 5 shapes in one python plugin. It installs to filters/render/shaped grid.

I kinda disliked the whole creating-a-new-image-each-time-it-runs thing, so I made it so that it instead creates a new layer to the active image and resizes the image if the layer doesn't fit (doesn't resize other layers, just changes the canvas size of the image).

On another note... I have some ideas how to make the script slightly faster, I'll have to experiment with this a bit later.

Here it is, folks, the new shape grid script: http://www.fileden.com/files/2010/2/7/2 ... apegrid.py

Re: Shape-Grid zip

Mon Apr 25, 2011 5:45 am

/.gimp-2.6/plug-ins/shapegrid.py", line 38, in shapegrid
pdb.gimp_image_resize(theImage, max(inWidth, img.Width), max(inHeight, img.Height), 0, 0)
AttributeError: 'gimp.Image' object has no attribute 'Width'

Re: Shape-Grid zip

Mon Apr 25, 2011 5:48 am

Oops! Should be fixed now, reload the file.

I also removed the background colour selection and made it so that the background is always transparent - it seems a bit more useful that way, to me.

Re: Shape-Grid zip

Mon Apr 25, 2011 5:57 am

Still throwing the same error. Have you updated the file in the link?

Re: Shape-Grid zip

Mon Apr 25, 2011 6:01 am

Well, I uploaded it once more and made sure it's the right file, so try downloading it now...

Just in case, here's another link http://www.fileden.com/files/2010/2/7/2 ... apegrid.py


... oh, and remember to restart gimp after you update the script.

Re: Shape-Grid zip

Mon Apr 25, 2011 6:05 am

Second link worked. :)

Re: Shape-Grid zip

Mon Apr 25, 2011 7:38 am

mahvin wrote:Second link worked. :)


Yeah, I thought it might... you probably still had the other link in browser cache.

Re: Shape-Grid zip

Mon Apr 25, 2011 8:52 am

Thanks dd. :)
Post a reply