Page 2 of 2

Re: Rotate Image

Posted: January 20th, 2018, 2:26 pm
by xenium
I come back with a question:
How do I have a wait time between ShowMeter and HideMeter?
I want a text to appear when the rotation stops, to remain displayed for 4 seconds and to disappear when the rotation starts again
I increased the waiting time between the rotations to 4 seconds

Thanks

Re: Rotate Image

Posted: January 20th, 2018, 5:06 pm
by balala
xenium wrote:I come back with a question:
How do I have a wait time between ShowMeter and HideMeter?
I want a text to appear when the rotation stops, to remain displayed for 4 seconds and to disappear when the rotation starts again
I increased the waiting time between the rotations to 4 seconds

Thanks
First obviously you should have to add the appropriate String meter. I added the following one:

Code: Select all

[MeterString]
Meter=STRING
X=#Radius#r
Y=#Radius#r
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=16
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CenterCenter
AntiAlias=1
Text=My String
Hidden=1
This meter is hidden (due to its Hidden=1 option).
Complete the IfTrueAction option and add the following IfFalseAction option, to the [MeasureWait] ActionTimer plugin measure:

Code: Select all

[MeasureWait]
...
IfTrueAction=[!CommandMeasure "MeasureWait" "Stop 1"][!CommandMeasure "MeasureRotate" "Execute 1"][!HideMeter "MeterString"][!Redraw]
IfFalseAction=[!ShowMeter "MeterString"][!Redraw]

Re: Rotate Image

Posted: January 20th, 2018, 6:51 pm
by xenium
Thanks so much !!!
:welcome: :welcome:

Re: Rotate Image

Posted: January 20th, 2018, 6:53 pm
by balala
Glad to help, if I did.