It is currently Thu Apr 18, 2024 2:50 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Shape-Grid zip
PostPosted: Sat Apr 23, 2011 9:21 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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



Attachments:
File comment: 4 different scm scripts to create 4 different shapes on grids.
Shape-Grids.zip [14.81 KiB]
Downloaded 355 times

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."
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: Shape-Grid zip
PostPosted: Sat Apr 23, 2011 9:48 am  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Thank Rod!

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Sat Apr 23, 2011 10:07 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
You are very welcome PC. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Sat Apr 23, 2011 12:41 pm  (#4) 
Offline
GimpChat Member

Joined: Feb 06, 2011
Posts: 342
Thanks Rod. Got them and will play now. :)

Liana


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Sun Apr 24, 2011 11:47 am  (#5) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Thanks, Rod, for taking the time to do that and sharing your results. :bigthup

Image

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


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Sun Apr 24, 2011 1:44 pm  (#6) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
Rod, do you mind if I combine these 4 into a single python script? I don't like cluttering the menus...


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Sun Apr 24, 2011 3:02 pm  (#7) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
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)

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Sun Apr 24, 2011 5:48 pm  (#8) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
@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

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Sun Apr 24, 2011 6:57 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Sun Apr 24, 2011 8:03 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Apr 18, 2011
Posts: 619
Location: New York
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

_________________
Ubuntu 22.04, Kernel i686, 5.4.0-131-generic
python3 v3.10.6 ----- GIMP - ver 2.10.30


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 12:56 am  (#11) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
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.


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 1:23 am  (#12) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
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.

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


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 5:32 am  (#13) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
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


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 5:45 am  (#14) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
/.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'

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


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 5:48 am  (#15) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
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.


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 5:57 am  (#16) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Still throwing the same error. Have you updated the file in the link?

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


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 6:01 am  (#17) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
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.


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 6:05 am  (#18) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
Second link worked. :)

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


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 7:38 am  (#19) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
mahvin wrote:
Second link worked. :)


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


Top
 Post subject: Re: Shape-Grid zip
PostPosted: Mon Apr 25, 2011 8:52 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks dd. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Quickly get a themed grid background/art

12

No new posts Spin-art Grid kind'a like Kandinsky's circles but for any image

1

No new posts Attachment(s) Words to shape

2

No new posts how to transfer one shape onto another

3

No new posts Attachment(s) Shape 3D Plugin

2



* Login  



Powered by phpBB3 © phpBB Group