It is currently May 2nd, 2024, 3:49 pm

Problem pausing rotator

Get help with creating, editing & fixing problems with skins
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Problem pausing rotator

Post by TweaknFreak »

(See the pictures below first)
I start a image rotator and it has to end at a angle of -45 degrees after rotation. I tried doing that by running a parallel Measure which counts to 30 and disables the rotator and shows up a image meter containing image no. 2. But that stucks in between and its really awkward to look at.

Please suggest me a possible solution. Thanx a million times.
You do not have the required permissions to view the files attached to this post.
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]
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Problem pausing rotator

Post by thatsIch »

would you mind posting code or skin?
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Problem pausing rotator

Post by TweaknFreak »

thatsIch wrote:would you mind posting code or skin?
Here's the code :-

Code: Select all

[Rainmeter]
BackgroundMode=1
Author=TweaknFreak
Update=10
MiddleMouseDownAction=[!Refresh]


[Variables]
MovingY=1


[MeasureMoveY]
Measure=Calc
Formula=MeasureMoveY + 5
IfEqualValue=730
IfEqualAction=[!HideMeter Background1][!ShowMeter Background2]
IfAboveValue=900
IfAboveAction=[!HideMeter Background2][!ShowMeter Background3][!EnableMeasure RotorStopper][!DisableMeasure MeasureMoveY]


[RotorStopper]
Measure=Calc
Formula=RotorStopper + 1
IfEqualValue=29
IfEqualAction=[!HideMeter Background3][!ShowMeter Background4]
Disabled=1


[CalcMeasure50]
Measure=Calc
Formula=Counter % 50


[MeasureTime50]
Measure=Calc
Formula=CalcMeasure50


[Background1]
Meter=Image
ImageName=try.png
X=0
Y=([MeasureMoveY] - 600)
DynamicVariables=1
AntiAlias=1


[Background2]
Meter=Image
ImageName=try.png
X=0
Y=130
AntiAlias=1
Hidden=1


[Background3]
Meter=Rotator
MeasureName=MeasureTime50
ImageName=try.png
X=-247
Y=-384
H=1644
w=1644
OffsetX=575
OffsetY=308
ValueRemainder=50
StartAngle=0
RotationAngle=-0.78539816339744830961566084581988
AntiAlias=1
Hidden=1


[Background4]
Meter=Image
ImageName=try1.png
X=-30
Y=-175
ImageAlpha=155
AntiAlias=1
Hidden=1

and the images are below. Please help me out.
You do not have the required permissions to view the files attached to this post.
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]
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Problem pausing rotator

Post by thatsIch »

Code: Select all

[Background3]
Meter=Rotator
MeasureName=MeasureTime50
ImageName=try.png
X=-247
Y=-384
H=1644
w=1644
OffsetX=575
OffsetY=308
ValueRemainder=50
StartAngle=0
RotationAngle=-0.78539816339744830961566084581988
AntiAlias=1
Hidden=1
Your Issue is, you try to "spin" it statically. You have to do the same with a measure to add a small portaion of 2pi to rotate it.
You just do it with a constant

Code: Select all

StartAngle=0
RotationAngle=-0.78539816339744830961566084581988
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Problem pausing rotator

Post by TweaknFreak »

thatsIch wrote:

Code: Select all

[Background3]
Meter=Rotator
MeasureName=MeasureTime50
ImageName=try.png
X=-247
Y=-384
H=1644
w=1644
OffsetX=575
OffsetY=308
ValueRemainder=50
StartAngle=0
RotationAngle=-0.78539816339744830961566084581988
AntiAlias=1
Hidden=1
Your Issue is, you try to "spin" it statically. You have to do the same with a measure to add a small portaion of 2pi to rotate it.
You just do it with a constant

Code: Select all

StartAngle=0
RotationAngle=-0.78539816339744830961566084581988
Sorry but I didnt get you properly. Please xplain a bit more.
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]
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Problem pausing rotator

Post by thatsIch »

You just add a constant to your rotation value,
but you need to add a measure there too, which increments

for something to rotate you have to add for example 1° over time but you have added 45° as a constant value to it.
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Problem pausing rotator

Post by TweaknFreak »

Can you provide a example code of spinning it statically. that would be very helpful.
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]
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Problem pausing rotator

Post by thatsIch »

Sorry was/am quite busy with university.
Ill have a look when I'm free
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Problem pausing rotator

Post by thatsIch »

Code: Select all

[Rainmeter]
Update = 10
MiddleMouseDownAction = [!Refresh]

[MeasureRotator]
Measure = Calc
Formula = MeasureRotator + 1

[Background1]
Meter = Image
ImageName = try.png
X = 0
Y = 0
ImageRotate = [MeasureRotator]
DynamicVariables=1
AntiAlias=1
this is some sample it simply rotating
but you have to fix the size + center point

Smurfier and JSM already did a tut on this + explanation [1]

Hope this helps
---
[1] http://rainmeter.net/cms/Tips-RotateImage
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Problem pausing rotator

Post by TweaknFreak »

thatsIch wrote:

Code: Select all

[Rainmeter]
Update = 10
MiddleMouseDownAction = [!Refresh]

[MeasureRotator]
Measure = Calc
Formula = MeasureRotator + 1

[Background1]
Meter = Image
ImageName = try.png
X = 0
Y = 0
ImageRotate = [MeasureRotator]
DynamicVariables=1
AntiAlias=1
this is some sample it simply rotating
but you have to fix the size + center point

Smurfier and JSM already did a tut on this + explanation [1]

Hope this helps
---
[1] http://rainmeter.net/cms/Tips-RotateImage

Sorry but that aint working. Please suggest something else. I tried Rotating it with OffsetX and Y set to middle of the image, but no luck. It Rotates in dizzying circles. I have a tough time finding the centre. Please help.
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]