Post all Gimp scripts and script writing questions here
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
![Smile :)](./images/smilies/icon_smile.gif)
You will find the scripts here
Sat Apr 23, 2011 9:48 am
Thank Rod!
Sat Apr 23, 2011 10:07 am
You are very welcome PC.
Sat Apr 23, 2011 12:41 pm
Thanks Rod. Got them and will play now.
![Smile :)](./images/smilies/icon_smile.gif)
Liana
Sun Apr 24, 2011 11:47 am
Thanks, Rod, for taking the time to do that and sharing your results.
![Big Thumb Up :bigthup](./images/smilies/023.gif)
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...
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)
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
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.
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
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.
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.
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
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'
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.
Mon Apr 25, 2011 5:57 am
Still throwing the same error. Have you updated the file in the link?
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.
Mon Apr 25, 2011 6:05 am
Second link worked.
Mon Apr 25, 2011 7:38 am
mahvin wrote:Second link worked.
![Smile :)](./images/smilies/icon_smile.gif)
Yeah, I thought it might... you probably still had the other link in browser cache.
Mon Apr 25, 2011 8:52 am
Thanks dd.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.