It is currently April 27th, 2024, 9:27 am

[SOLVED] Help With a Clock

Get help with creating, editing & fixing problems with skins
User avatar
ScoobSTi
Posts: 127
Joined: September 12th, 2012, 10:49 pm

[SOLVED] Help With a Clock

Post by ScoobSTi »

Code: Select all

[Variables]
ImageW=200
ImageH=200

[MeasureTime]
Measure=Time

[MeterClockFace]
Meter=Image
ImageName=Images\Dial.png
W=200
H=200

[MeterHoursHand]
Meter=ROTATOR
MeasureName=MeasureTime
ImageName=Images\Hour.png
X=0
Y=0
W=200
H=200
OffsetX=(#ImageW# / 2)
OffsetY=(#ImageH# / 2)
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=43200

[MeterMinutesHand]
Meter=ROTATOR
MeasureName=MeasureTime
ImageName=Images\Minute.png
X=0
Y=0
W=200
H=200
OffsetX=(#ImageW# / 2)
OffsetY=(#ImageH# / 2)
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=3600
I got some of the code from the manual, but the manual doesn't talk about StartAngle, RotationAngle and ValueRemainder, which is why I think my clock isn't working properly. What's wrong with the code?

Screenshot of the "clock" at 9:56 PM:
Last edited by ScoobSTi on December 28th, 2012, 10:28 pm, edited 1 time in total.
Image
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Help With a Clock

Post by MerlinTheRed »

You have to take care that your images of the hour and minute handles are actually 200x200 pixels in size. The Rotator meter doesn't perform any scaling of the images.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
ScoobSTi
Posts: 127
Joined: September 12th, 2012, 10:49 pm

Re: Help With a Clock

Post by ScoobSTi »

All 3 images (dial and both hands) are 200x200, but the hands are still completely wrong.
Image
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Help With a Clock

Post by smurfier »

Could you please create an RMSKIN package and post it.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
ScoobSTi
Posts: 127
Joined: September 12th, 2012, 10:49 pm

Re: Help With a Clock

Post by ScoobSTi »

Here it is.

Do the "StartAngle" and "RotationAngle" amounts stay the same for every single clock out there? I thought maybe that was interfering with the clock.
You do not have the required permissions to view the files attached to this post.
Image
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Help With a Clock

Post by smurfier »

Except for the fact that your minute hand is longer than 100 px, half the skin, everything is working fine over here.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
ScoobSTi
Posts: 127
Joined: September 12th, 2012, 10:49 pm

Re: Help With a Clock

Post by ScoobSTi »

That's the sort of look I was trying to achieve, but when I put my clock next to the example clock (from the rotator guide), both hands are about -90 degrees off. Should I rotate the hand images in Photoshop?

Edit: Rotated them 90 degrees and now it works. I feel silly now. Such a simple solution.
Image
WandaRage
Posts: 24
Joined: November 25th, 2012, 4:01 am

Re: [SOLVED] Help With a Clock

Post by WandaRage »

It usually always is.

Just takes a fresh pair of eyes to see it sometimes.