It is currently May 2nd, 2024, 8:04 pm
Problem pausing rotator
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: Problem pausing rotator
I had a similar problem in the past. The solution was not to use ImageRotate in any way when using Meter=Rotator. ImageRotate will rotate the image and also resize it so nothing gets cut off. This is done before looking where the offsets put the center, so it will not be correctly centered. Perhaps using Meter=Image and ImageRotate does something similar, constantly resizing the meter. Try setting SolidColor=255, 0, 0, 255 on the image meter and see if you notice something.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 217
- Joined: July 14th, 2012, 7:26 am
Re: Problem pausing rotator
MerlinTheRed wrote:I had a similar problem in the past. The solution was not to use ImageRotate in any way when using Meter=Rotator. ImageRotate will rotate the image and also resize it so nothing gets cut off. This is done before looking where the offsets put the center, so it will not be correctly centered. Perhaps using Meter=Image and ImageRotate does something similar, constantly resizing the meter. Try setting SolidColor=255, 0, 0, 255 on the image meter and see if you notice something.
You were right. the height and Width changes every moment(of the Red solid coloured square area).
Can you suggest some solution to this?? It will be great then. thanx in advance.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
-
- Posts: 446
- Joined: August 7th, 2012, 9:18 pm
Re: Problem pausing rotator
Please check out the link I posted, this contains examples and solution + explanation.
My example was just to illustrate my words before
My example was just to illustrate my words before
Powered by Sublime Text 3 with Rainmeter-Package
-
- Posts: 217
- Joined: July 14th, 2012, 7:26 am
Re: Problem pausing rotator
Okay, I solved it. thanks to all. Here's what i did-
Thanx again and let me tell ya all - you guyz are doing a great job here.
Code: Select all
[Rainmeter]
Author=TweaknFreak
Update=10
BackgroundMode=1
MiddleMouseDownAction=[!Refresh]
[Variables]
ImageW=228
ImageH=228
pause=1
nop=360
[MeasureRotate]
Measure=Calc
Formula=((MeasureRotate % 360) + #pause#)
MaxValue=360
IfEqualValue=45
IfEqualAction=[!SetVariable pause 0]
DynamicVariables=1
[Background3]
Meter=ROTATOR
ImageName=bat3.png
MeasureName=MeasureRotate
OffsetX=(#ImageW# / 2)
OffsetY=(#ImageH# / 2)
W=(SQRT(#ImageW# ** 2 + #ImageH# ** 2))
H=(SQRT(#ImageW# ** 2 + #ImageH# ** 2))
X=50
Y=50
SolidColor=255,0,0,255
ImageAlpha=255
AntiAlias=1
Hidden=0
Last edited by TweaknFreak on October 17th, 2012, 1:42 pm, edited 1 time in total.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Problem pausing rotator
Do you want it to slowly rotate to 45 degrees or do you want it to just be rotated 45 degrees?
Code: Select all
[Rainmeter]
Author=TweaknFreak
Update=10
BackgroundMode=1
MiddleMouseDownAction=[!Refresh]
[Variables]
ImageW=228
ImageH=228
[MeasureRotate]
Measure=Calc
Formula=MeasureRotate + (MeasureRotate<45?1:0)
MaxValue=360
[Background3]
Meter=ROTATOR
ImageName=bat3.png
MeasureName=MeasureRotate
OffsetX=(#ImageW# / 2)
OffsetY=(#ImageH# / 2)
W=(SQRT(#ImageW# ** 2 + #ImageH# ** 2))
H=(SQRT(#ImageW# ** 2 + #ImageH# ** 2))
X=50
Y=50
SolidColor=255,0,0,255
ImageAlpha=255
AntiAlias=1
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 . . .
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 . . .
-
- Posts: 217
- Joined: July 14th, 2012, 7:26 am
Re: Problem pausing rotator
smurfier wrote:Do you want it to slowly rotate to 45 degrees or do you want it to just be rotated 45 degrees?
Code: Select all
[Rainmeter] Author=TweaknFreak Update=10 BackgroundMode=1 MiddleMouseDownAction=[!Refresh] [Variables] ImageW=228 ImageH=228 [MeasureRotate] Measure=Calc Formula=MeasureRotate + (MeasureRotate<45?1:0) MaxValue=360 [Background3] Meter=ROTATOR ImageName=bat3.png MeasureName=MeasureRotate OffsetX=(#ImageW# / 2) OffsetY=(#ImageH# / 2) W=(SQRT(#ImageW# ** 2 + #ImageH# ** 2)) H=(SQRT(#ImageW# ** 2 + #ImageH# ** 2)) X=50 Y=50 SolidColor=255,0,0,255 ImageAlpha=255 AntiAlias=1
Your code is better, as it always has been. I did the same task too. And the answer to your question is yes I want it to be slowly rotated.
Well if you dont mind, could you figure it out whether it can be rotated counter clockwise and then paused ? Is it possible ?
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Problem pausing rotator
Add RotationAngle=-6.28 to the Rotator meter.
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 . . .
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 . . .
-
- Posts: 217
- Joined: July 14th, 2012, 7:26 am
Re: Problem pausing rotator
That solves my problem totally. Thanx again to you guyz and I'll soon be back with more problems. :Psmurfier wrote:Add RotationAngle=-6.28 to the Rotator meter.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]