It is currently Sat May 04, 2024 3:11 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 12:50 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Based on some comments in Oregonian's tutorial thread, I've written a script which renders a calendar for an entire year. The script is still relatively untested and it is unlikely I will get around to modifying it much until next year, but for those brave souls who wish to try it out now I am making it available.


The script requires that you have installed the latest version of the original sg-calendar.scm script; and also that you install the sg-calendar-year.scm script.
EDIT: The script has been updated and the two files combined into one. The description and download links for the latest version can be found on my Chiselapp website.

The script adds a command under "Filters->Render->Calendar Year..." and will render the new calendar within the bounds of the current selection. The dialog present contains the same options as the original calendar script (except for the "month", since all 12 months are rendered), and adds two additional options: "Columns" and "Padding". The padding is the blank space between the individual months and is expressed as a percentage (0-80).

The script makes no attempt to render the year number; it is left to the user to place this on their image. At a minimum, a selection should probably be made so that there is a protected region reserved for this.

At this time, I would only recommend this script for those familiar with the original calendar script -- and perhaps not even them. THIS IS BETA SOFTWARE!

Any reports of bugs or suggestions for improvements are welcome, though I may not fix things or otherwise implement changes at this time. I will try to fix the most egregious problems, but can not make any firm commitments.

Here is an example of the script being run on an image where the bottom half of the image was selected and the number of Columns was set to "6".

Attachment:
EinSlack6x2.png
EinSlack6x2.png [ 574.53 KiB | Viewed 5934 times ]

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Last edited by saulgoode on Thu Jan 13, 2011 5:32 am, edited 1 time in total.

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: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 1:00 pm  (#2) 
Offline
GimpChat Member

Joined: Aug 27, 2010
Posts: 491
Script errors ... I'll play with it a bit later.


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 2:35 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Nice thanks Saulgoode! =)

_________________
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: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 2:50 pm  (#4) 
Offline
GimpChat Member

Joined: Aug 27, 2010
Posts: 491
Image


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 3:17 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Here is mine too.
Image

thanks Saul. that is great. wow.....

_________________
Image


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 3:26 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Unbound variable for sg-calendar-months.

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


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 3:31 pm  (#7) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Be sure to download the regular calendar script saulgoode posted in this thread. The one I posted in the tutorial won't work with the new Year Calendar script. I updated the link in my tutorial. I got error messages before I downloaded the updated script.

A couple things I discovered along the way. First, merge any layers you have in the image you want to put the year calendar in. If you made a selection that's not the size of your original image, be sure to Select > To Path with it. You may not need it, but if you do you will be happy you saved it. I made a new, transparent layer and ran the script from that layer and that worked fine.

I don't know how you figured all that out, saulgoode, but it's a great script. Thanks.

I don't think the game warden is going to argue with that bear about it not being salmon season.

Image

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


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 3:49 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
Great scripts and awesome calanders!!

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 4:26 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Great script, SaulGoode! Thanks! :)

I did notice, however, that 3 months (January, July, and October) got squeezed smaller than the rest of the months.

Image

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


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 4:30 pm  (#10) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
very nice o, Love the froggy, mahvin.

_________________
Image


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 4:49 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Oregonian wrote:
A couple things I discovered along the way. First, merge any layers you have in the image you want to put the year calendar in. If you made a selection that's not the size of your original image, be sure to Select > To Path with it. You may not need it, but if you do you will be happy you saved it. I made a new, transparent layer and ran the script from that layer and that worked fine.

Next year I will modify the script so that it doesn't require that the original layer fills the selected area.

I also need to adjust the placement of the individual months. Currently, they are placed somewhat correctly horizontally (each month centered within its grid cell), but vertically the months are placed at the bottom of their individual grid cell. This was a mistaken in my programming and not how I intend it to behave.

Attachment:
grid.png
grid.png [ 514 Bytes | Viewed 1958 times ]


What I would like to do is have the months evenly distributed from edge-to-edge and top-to-bottom as shown in the following:

Attachment:
grid2.png
grid2.png [ 500 Bytes | Viewed 1958 times ]


mahvin wrote:
I did notice, however, that 3 months (January, July, and October) got squeezed smaller than the rest of the months.


The fonts used for those months are smaller because there are six rows of weekdays for those months but only five rows for the others. If you wish all of the numerals to have the same font size, use the "Force six week span" option (one of the "wrap" options would also work).

Thanks for all the feedback.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 4:59 pm  (#12) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Quote:
The fonts used for those months are smaller because there are six rows of weekdays for those months but only five rows for the others. I you want all of the numerals to have the same font size, use the "Force six week span" option (one of the "wrap" options would also work).


Ok, thanks for the script and tip, much appreciated.

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


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 9:47 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I love these scripts... and my Yankees!


Attachments:
Ultracool.jpg
Ultracool.jpg [ 4.95 MiB | Viewed 1946 times ]

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.
Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Tue Dec 28, 2010 9:55 pm  (#14) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Wow! What a cool background and that font looks like it should be traveling across the page. Great calendar, Greg! :clap

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


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Wed Dec 29, 2010 12:25 am  (#15) 
Offline
Retired Staff
User avatar

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

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


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Wed Dec 29, 2010 8:06 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks for the heads up on downloading the new calender script O.
I missed that myself, and got the same error.

All set now though. =)

_________________
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: Calendar Year Script-fu (beta)
PostPosted: Wed Dec 29, 2010 9:18 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
One for the Gimper Magazine. :clap

Image

_________________
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: Calendar Year Script-fu (beta)
PostPosted: Wed Dec 29, 2010 10:44 am  (#18) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very nice Rod. You probably already know this, but if you prefer not to show the grids, you can turn the grids off in all the months. I tried it on a page and looks cool.

@O, I like your red - white and black calendar.

_________________
Image


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Wed Dec 29, 2010 11:19 am  (#19) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Rod wrote:
One for the Gimper Magazine. :clap


:yes

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


Top
 Post subject: Re: Calendar Year Script-fu (beta)
PostPosted: Wed Dec 29, 2010 2:02 pm  (#20) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Just an added tip here. If you set the border width to zero you don't get borders around your month calendars. The layer the borders would be on is a blank layer when border width is zero.

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


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Calendar month and year plugin (script .scm) updated - modified

12

No new posts Marblelous Beta (Siamese Fighting Fish).

0

No new posts Attachment(s) A New Year 2021

9

No new posts Attachment(s) Happy New Year 2022

17

No new posts Attachment(s) Happy New Year 2024

10



* Login  



Powered by phpBB3 © phpBB Group