Code: Select all
[MyString]
Meter=String
Text=Hello, world!
padding=11,12,13,14
FontColor=200,150,255,100
X=20
Y=10
W=100
H=50
Is it possible to reference an individual padding option by that i mean Left, Top, Right, or Bottom, if so how?
Code: Select all
[MyString]
Meter=String
Text=Hello, world!
padding=11,12,13,14
FontColor=200,150,255,100
X=20
Y=10
W=100
H=50
Something like:dans98 wrote: ↑October 27th, 2023, 10:13 pmgiven the example meter above, I know you can get its X, Y, W, & H setting using like this [MyString:X].Code: Select all
[MyString] Meter=String Text=Hello, world! padding=11,12,13,14 FontColor=200,150,255,100 X=20 Y=10 W=100 H=50
Is it possible to reference an individual padding option by that i mean Left, Top, Right, or Bottom, if so how?
jsmorley wrote: ↑October 27th, 2023, 11:47 pm Something like:
padding=#left#,#top#,#right#,#bottom#
Then there are several ways to control the values contained by the [Variables]. Particularly, the action !SetVariable. The current values can be retrieved by referencing the variable as #left# etc. Be sure to use DynamicVariables=1 on any measure or meter you are getting the current value in.
Yeah, the section variable parameters list is limited to some key options that are used more frequently (for example, there is no [SomeMeter:Hidden] either). That being said, besides using variables like jsmorley suggested (a quite comfortable method overall), you could use inline Lua to get the value of any option from a measure or meter, via something like (SKIN:GetMeter('SomeMeter')):GetOption('Padding') in this case, then perform some string splitting to get and return individual paddings: