It is currently April 24th, 2024, 3:52 pm

Update Text Meter Based on Index Value

Get help with creating, editing & fixing problems with skins
User avatar
kanine
Posts: 62
Joined: June 29th, 2012, 9:09 am

Update Text Meter Based on Index Value

Post by kanine »

I have a skin that presents a series of 6 looping images, which uses a counter as below:

Code: Select all

[MeasureCounter]
Measure=Calc
Formula=(MeasureCounter % 6) + 1

[MeterAniImage]
Meter=Image
ImageName=DownloadFile\Image[MeasureCounter].png
DynamicVariables=1
PreserveAspectRatio=1
This works beautifully but I also now need to do something similar with a text meter, I tried the obvious but it doesn't work.

Code: Select all

[MeterAniTime1]
Meter=STRING
MeterStyle=styleCenterText
MeasureName=MeasureAniTime[MeasureCounter]
I think that the counter is not being substituted into the MeasureName, I've confirmed that MeasureAniTime1, MeasureAniTime2 etc are properly set but nothing is coming through.

Any help gratefully received.

Edit: Nevermind I spot the obvious error - DynamicVariables=1 geez.
User avatar
balala
Rainmeter Sage
Posts: 16166
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Update Text Meter Based on Index Value

Post by balala »

kanine wrote: October 28th, 2020, 7:18 am This works beautifully but I also now need to do something similar with a text meter, I tried the obvious but it doesn't work.

Code: Select all

[MeterAniTime1]
Meter=STRING
MeterStyle=styleCenterText
MeasureName=MeasureAniTime[MeasureCounter]
I think that the counter is not being substituted into the MeasureName, I've confirmed that MeasureAniTime1, MeasureAniTime2 etc are properly set but nothing is coming through.

Any help gratefully received.

Edit: Nevermind I spot the obvious error - DynamicVariables=1 geez.
Yes, anytime are you using section variables (like in this case the [MeasureCounter] into the MeasureName option), you have to set dynamic variables.