Code: Select all
```
[MeterSecondaryString]
Meter = String
Text = [Script:f---()]
FontSize = (14*#Scale#)
MeterStyle = TextStyle
X = 0R
Y = (-15*#Scale#)R
```
Code: Select all
```
function f---()
return 10
end
```
Code: Select all
```
[MeterSecondaryString]
Meter = String
Text = [Script:f---()]
FontSize = (14*#Scale#)
MeterStyle = TextStyle
X = 0R
Y = (-15*#Scale#)R
```
Code: Select all
```
function f---()
return 10
end
```
There are 3 mistakes in your codes:
Thank uYincognito wrote: ↑January 2nd, 2024, 12:26 pm There are 3 mistakes in your codes:
- the syntax for the Lua inline measure should have an & after [, i.e. [&Script:YourFunction()], see the syntax here
- your meter should have DynamicVariables=1 added to it, to allow retrieving the values of section variables like the call to your Lua function, see the first line here
- in Lua, preceding something with -- is turning the rest of that line into a comment, so you might want to replace - with a similar character like _ instead, e.g. [&Script:f___()] in the .ini file and function f___() in the .lua file
The above assumes that you have a valid Script measure in your omitted code that points to the proper .lua file, of course.
No problem, glad to help. It's more or less what Jeff illustrated as well.