grandMA3 User Manual Publication
GetPathType(handle[, integer])
grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » GetPathType(handle[, integer])
|
Version 2.1
|
Description
The GetPathType Lua function returns a string with a name for the path type. This function can be useful when importing objects.
Argument
- Handle:
The handle should match the object type for which the path type is needed. - Integer (optional):
The optional integer can be used to specify if the returned string should match the user path type or the system path type. See the example below.
The Enums.PathContentType can be used, or just use 0 for the system path and 1 for the user path.
Return
- String:
The returned string is the name of the path type.
Example
This example prints the path type name for the first macro object - if it exists:
Lua |
return function () |