It is currently April 30th, 2024, 11:15 pm

working with Measure=Time by smaller divisions of a second

Get help with creating, editing & fixing problems with skins
Wyld_Goose
Posts: 36
Joined: May 12th, 2012, 3:23 am

working with Measure=Time by smaller divisions of a second

Post by Wyld_Goose »

I've got a few ideas in the works and I believe I may be able to solve a wall I'm hitting with them, by solving this problem:

I would like to change the secondhand "1 second clunky clicks" movement of the standard clock.....

Code: Select all

[Rainmeter]
Update=100

[MeasureTime]
Measure=Time

[MeterSecondsHand]
Meter=ROTATOR
MeasureName=MeasureTime
W=400
H=400
ImageName=testhand.png
OffsetX=15
OffsetY=15
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=60 
...to something that is more smoother like this:

Code: Select all

[Rainmeter]
Update=166
DynamicWindowSize=1

[Variables]
ImageW=200
ImageH=29

[MeasureRotate]
Measure=Calc
Formula=(MeasureRotate % 360) + 1
MaxValue=360

[MeterRotate]
Meter=Rotator
MeasureName=MeasureRotate
ImageName=testhand.png
OffsetX=15
OffsetY=15
W=400
H=400 
I would prefer the movements to be 1/10 or 10 times a second, moving 6° per second (the distance of a 1 second movement on a clock. It will be not perfectly smooth, but more like the movement of some classic clocks with 0.6° second hand movement every 1/10th a second.

I've done searches and scanned through the forums and haven't yet to see anything like this question. I may just have missed it. Is this even possible?
Wyld_Goose
Posts: 36
Joined: May 12th, 2012, 3:23 am

Re: working with Measure=Time by smaller divisions of a seco

Post by Wyld_Goose »

Just to avoid any solutions using Update=100 to get the 10th of a second, what I'm looking for is movement that has to be tied to actual time rather then generalized time.
Wyld_Goose
Posts: 36
Joined: May 12th, 2012, 3:23 am

Re: working with Measure=Time by smaller divisions of a seco

Post by Wyld_Goose »

Here is where I'm currently at:

Code: Select all

[Rainmeter]
Update=100
DynamicWindowSize=1

[Variables]
ImageW=200
ImageH=29


[MeasureTime]
Measure=Time


[MeasureRotate]
Measure=Calc
Formula=(MeasureRotate % 10) + 1
MaxValue=10

;////////////////////////////////////merge this meter below... ////////////////////

[MeterSecondsHand]
Meter=ROTATOR
MeasureName=MeasureTime
X=0
Y=0
W=400
H=400
ImageName=testhand.png
OffsetX=15
OffsetY=15
StartAngle=4.71239
RotationAngle=6.2832
ValueRemainder=60
DynamicVariables=1

;////////////////////////////////////////with this meter below///////////////////

[MeterRotate]
Meter=Rotator
MeasureName=MeasureRotate
ImageName=testhand.png
OffsetX=15
OffsetY=15
W=400
H=400
StartAngle=4.71239
RotationAngle=0.10472
DynamicVariables=1
Can a meter set off another meter? When MeasureTime meter updates, can I get it to trigger MeterRotate? Something like this?

Code: Select all

[Rainmeter]
Update=100
DynamicWindowSize=1

[Variables]
ImageW=200
ImageH=29

[MeasureTime]
Measure=Time

[MeasureRotate]
Measure=Calc
Formula=(MeasureRotate % 10) + 1
MaxValue=10


[MeterSecondsHand]
Meter=ROTATOR
MeasureName=MeasureTime
;--------------------when MesureTime updates execute MeterRotate---------
!SetOption !Execute [*MeterRotate*]
DynamicVariables=1

[MeterRotate]
Meter=Rotator
MeasureName=MeasureRotate
ImageName=testhand.png
OffsetX=15
OffsetY=15
W=400
H=400
StartAngle=4.71239
RotationAngle=0.10472
DynamicVariables=1
 
Wyld_Goose
Posts: 36
Joined: May 12th, 2012, 3:23 am

Re: working with Measure=Time by smaller divisions of a seco

Post by Wyld_Goose »

Solved
User avatar
Arne Anka
Posts: 100
Joined: April 18th, 2009, 11:31 am
Location: Sweden

Re: working with Measure=Time by smaller divisions of a seco

Post by Arne Anka »

Wyld_Goose wrote:Solved
And how did you solve it? :confused:
Livet är bara en period man ska överleva.
Som filosoferna säger: man föds, man lever och man dör ensam...
Wyld_Goose
Posts: 36
Joined: May 12th, 2012, 3:23 am

Re: working with Measure=Time by smaller divisions of a seco

Post by Wyld_Goose »

Code: Select all

[Rainmeter]
Update=50
;or Update=100  but 50 made my animation smoother
 
[MeasureTime]
Measure=Time
AverageSize=10

[MeasureTimeAt100thASecond]
Measure=Calc
Formula=MeasureTime * 10

[MeterSecondHand]
MeasureName=MeasureTimeAt100thASecond
Meter=ROTATOR
X=24
Y=24
W=300
H=300
ImageName=SecondHand.png
StartAngle=0
RotationAngle=-6.2831853
ValueReminder=600               <------------- at Update=50, (ValueReminder=600 )= 1 second movement rather then the (ValueRemainder=60) with Normal Measure=time at Update=1000.  So do all math for minute, hour and/or all other time division movement accordingly