zivallh wrote: ↑June 30th, 2020, 3:55 pm
Thanks for your reply!
Yes interested for sure, but the thing is I have a skin I want to show a meter group when I toggle to show fade, I don't know about your method could you write it for me may it work
Ok, here is a simple workaround. If you can't get it to work, please post the whole code you have so far, to can check it.
So, first add two variables to the [Variables] section, beside the existing ones:
Secondly add the following two measures:
Code: Select all
[MeasureToggle]
Measure=Calc
Formula=#Toggle#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!CommandMeasure "MeasurePushDays" "Execute 1"][!CommandMeasure "MeasurePushDays" "Stop 2"]
IfFalseAction=[!CommandMeasure "MeasurePushDays" "Stop 1"][!CommandMeasure "MeasurePushDays" "Execute 2"]
DynamicVariables=1
[MeasurePushDays]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders
ActionList1=Repeat FadeIn,20,20
FadeIn=[!SetVariable Alpha "(Clamp((#Alpha#+13),0,255))"][!UpdateMeasure "#CURRENTSECTION#"][!UpdateMeterGroup "Conditions"][!Redraw]
ActionList2=Repeat FadeOut,20,20
FadeOut=[!SetVariable Alpha "(Clamp((#Alpha#-13),0,255))"][!UpdateMeasure "#CURRENTSECTION#"][!UpdateMeterGroup "Conditions"][!Redraw]
DynamicVariables=1
And finally modify the existing meters, as it follows:
Code: Select all
[MeterTemperature]
MeasureName=Temperature
Meter=String
X=0
Y=0
FontFace=#Font#
FontColor=#FontColor#
FontSize=40
Antialias=1
DynamicVariables=1
Text=%1°
LeftMouseUpAction=[!SetVariable Toggle "(1-#Toggle#)"][!UpdateMeasure "MeasureToggle"]
DynamicVariables=1
;[!ToggleMeterGroup "Conditions"]
[MeterConditions]
MeasureName=CurrentConditions
Meter=String
X=0
Y=50
FontFace=#Font#
FontColor=#FontColor#,#Alpha#
FontSize=18
Antialias=1
Hidden=0
Group=Conditions
DynamicVariables=1
Note that this will work ONLY if the existing FontColor variable (which I don't know) doesn't have a transparency set. So, if the FontColor variable consist of three values (RGB), it's gonna work, but if it consist of four values (RGBA), the code won't work. If this is the case, remove the fourth element of this variable (for instance if your variable is
FontColor=255,255,255, it is ok, but if it's
FontColor=255,255,255,255, remove the last term, replacing it with
FontColor=255,255,255).
Hope this modifications are working. Please let me know if they aren't and in this case post the code you have so far.