GIMP Chat
http://gimpchat.com/

Platonic Calendar Script-fu
http://gimpchat.com/viewtopic.php?f=9&t=1003
Page 1 of 8

Author:  saulgoode [ Wed Jan 12, 2011 10:17 pm ]
Post subject:  Platonic Calendar Script-fu

Inspired by the images on this website (I don't speak Spanish), I started working on a script which, in conjunction with the Calendar script, will render a calendar shaped such that it can be folded into a dodecahedron. The script is in its seminal stages, but if anyone is interested in trying it in its current form, it can be downloaded from this page. EDIT: please visit this page for info and links on the latest version

I will eventually get around to fixing up the layout and adding the ability to map images onto the sides (the "facet image" option does nothing right now), but if anyone wants to experiment with this preliminary version, it is somewhat functional.

The command is called "Platonic calendar" (a dodecahedron is a 12-sided platonic solid) and is found under "File->Create". The default edge-length of "450" should produce an image suitable for printing on a DIN A4 sheet of paper at 300DPI (though this may need some tweaking).

Here is an example output using an edge-length of "150":

Attachment:
platonic-01.png
platonic-01.png [ 76.91 KiB | Viewed 4971 times ]

Author:  Bob63 [ Wed Jan 12, 2011 11:52 pm ]
Post subject:  Re: Calendar Year Script-fu (beta)

That looks like it will be quite a challenge, Saul.

Author:  Rod [ Thu Jan 13, 2011 2:53 am ]
Post subject:  Re: Calendar Year Script-fu (beta)

Very nice saulgoode, thanks! =)

Author:  Oregonian [ Thu Jan 13, 2011 9:43 am ]
Post subject:  Re: Calendar Year Script-fu (beta)

Wow! That looks complicated, saulgoode. I've seen little plastic models of calendars like that. I need to get some legal sized paper to print it on and cut and paste. Dunno if I can buy A4 paper.

Going to have to give it a try. Got the script.

Author:  Oregonian [ Thu Jan 13, 2011 10:20 am ]
Post subject:  Re: Calendar Year Script-fu (beta)

This one I used US Letter size, side 350 and a facet image. I thot the facet image would go on all of the facets. Having it on one is cool, too. Since I don't have a color printer, I could print it on colored paper, have the calendar in black and the facet image in gray. A totally cool script.

Image

Author:  saulgoode [ Thu Jan 13, 2011 12:25 pm ]
Post subject:  Re: Calendar Year Script-fu (beta)

O, I though DIN A4 was the normal letter size. Please set me straight if that is incorrect.

I hadn't gotten around to implementing the facet image with that first version. I did some coding last night and I think I've got it working (it wasn't as difficult as I thought it would be).

The new version can be obtained by following the link on my Chiselapp webpage.

Here is an example using magazine covers from Fantasy & Science Fiction for the facet image:

Attachment:
platonic-02.jpg
platonic-02.jpg [ 143.29 KiB | Viewed 4952 times ]

Author:  Oregonian [ Thu Jan 13, 2011 12:32 pm ]
Post subject:  Re: Calendar Year Script-fu (beta)

saulgoode wrote:
O, I though DIN A4 was the normal letter size. Please set me straight if that is incorrect
You could be right about DIN A4 size, I just plain don't know. I used US letter size in GIMP templates though and, plain A4 is in the GIMP templates too.

AFAIK, regular A4 is slightly narrower and slightly longer than US Letter.

Your images in the calendar are cool. How did you get different images in the calendar? More experimenting. :mrgreen:

Author:  saulgoode [ Thu Jan 13, 2011 12:38 pm ]
Post subject:  Re: Calendar Year Script-fu (beta)

Oregonian wrote:
AFAIK, regular A4 is slightly narrower and slightly longer than US Letter.

Oh. Well, that could work out because the render graphic is slightly narrower than 8.5"x11" when scaled to fit.

Oregonian wrote:
Your images in the calendar are cool. How did you get different images in the calendar? More experimenting. :mrgreen:


I've just updated my wiki page. Here is what I wrote:
The facet image can be a single layer or multiple layers. If the facet image has twelve layers then each layer will appear on a different face of the dodecahedron (bottom layer is January, top layer is December). Fewer than twelve layers will result in the layers being repeated to produce the twelve faces (e.g., four layers would be "cycled through" three times).

The facet layers will be centered and scaled (up or down) to completely fill the facet. (I made it so that if a facet layer is linked then the layer will not be scaled but this feature may prove difficult to use.)

Here is an example output using an edge-length of "120" and various covers from Fantasy & Science Fiction magazines as the facet image (you can use "File->Open As Layers" to create a multilayer facet image).

Author:  Oregonian [ Thu Jan 13, 2011 12:50 pm ]
Post subject:  Re: Calendar Year Script-fu (beta)

I'm not having any luck at all with the facet image showing up in the calendar. I made a gold-colored Gimp Chat and duplicated it so I had 12 layers. Tried it 3 times. I made sure use facet image was checked and the correct image was in the dropdown. Restarting GIMP is next.

Author:  Oregonian [ Thu Jan 13, 2011 1:08 pm ]
Post subject:  Re: Calendar Year Script-fu (beta)

Still no joy on the image. :hoh :gaah

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