grandMA3 User Manual Publication
GetPathOverrideFor(string|integer, string[, boolean])
grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » GetPathOverrideFor(string|integer, string[, boolean])
|
Version 2.1
|
Description
The GetPathOverrideFor Lua function delivers a string with the path of a grandMA3 folder. The function is relevant when the path should be on a removable drive connected to a console.
Argument
- String:
A text string with the folder name. - String:
The base path in a string format. - Boolean (optional with string):
If this boolean is true, then the folder at the path is created if it does not exist.
- OR -
- Integer:
An integer identifying an index in the "Enum.PathType" table. - String:
The base path in a string format. - Boolean:
If this boolean is true, then the folder at the path is created if it does not exist.
Return
- String:
The returned string is the first found full path related to the provided argument.
Example
This example prints the override path of the macro folder on the system monitor. It should be run on a console with a removable drive connected.
Lua |
return function () |