grandMA3 User Manual Publication

HandleToInt(handle)

grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » HandleToInt(handle)
Version 2.1

Description

The HandleToInt Lua function converts a handle into an integer format.

See the Handle topic for more info regarding handles and links to other related functions.

Arguments

  • Handle:
    The handle of the object.

Return

  • Integer:
    The returned integer is the handle converted to an integer.

Example

This example prints the handle integer number for the selected sequence. It also converts the integer back to a handle and uses this to print the name of the sequence:

Lua
return function()
Printf("The integer number for the handle of the selected sequence: %i", HandleToInt(SelectedSequence()))
end