Using formulas with meter names? Is it possible?
Posted: October 14th, 2019, 5:40 pm
Example:
Let's say I have squares S01, S02, S03 and S04
When clicking square S02, square S01 (metername-1) is hidden
The idea is more or less as follows:
The question is: is it possible to make one unique formula that will always subtract the current meter's ID number by one?
Or do I have to put in a formula for every square that's going to hide the previous one? I.e:
Let's say I have squares S01, S02, S03 and S04
When clicking square S02, square S01 (metername-1) is hidden
The idea is more or less as follows:
Code: Select all
[Style]
Meter=Image
Solidcolor=0,0,0,255
H=100
W=100
X=150R
LeftMouseUpAction=[!ToggleMeter "S0[-1]"]
[S01]
Meter=Image
MeterStyle=Style
[S02]
Meter=Image
MeterStyle=Style
[S03]
Meter=Image
MeterStyle=Style
[S04]
Meter=Image
MeterStyle=Style
Or do I have to put in a formula for every square that's going to hide the previous one? I.e:
Code: Select all
[Style]
Meter=Image
Solidcolor=0,0,0,255
H=100
W=100
X=150R
[S01]
Meter=Image
MeterStyle=Style
[S02]
Meter=Image
MeterStyle=Style
LeftMouseUpAction=[!ToggleMeter "S01"]
[S03]
Meter=Image
MeterStyle=Style
LeftMouseUpAction=[!ToggleMeter "S02"]
[S04]
Meter=Image
MeterStyle=Style
LeftMouseUpAction=[!ToggleMeter "S03"]