| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetPath(string[, boolean] | integer) | Version 2.2 |
GetPath 関数は、grandMA3 フォルダのパスを含む文字列を提供します。
この関数は、以下の2種類の型の引数で呼び出せます。
|
|
制限 |
| フォルダの作成は、引数が string の場合にのみ機能します。 |
shows フォルダのパスを、2つの異なる引数指定で System Monitor に表示します。
Lua |
return function() -- This prints a path based on a string input and it creates the folder if it does not exists. Printf("Path of show files (string) is: " .. GetPath("shows", true)) -- This prints the path based on an integer. The integer is looked-up using the 'PathType' enum. Printf("Path of show files (integer) is: " .. GetPath(Enums.PathType.Showfiles)) end |