Lua 関数の HandleToInt は、ハンドルを整数形式に変換します。
ハンドルの詳細や関連関数については、ハンドル を参照してください。
この例では、選択されているシーケンスのハンドルを整数に変換して出力しています。また、この整数をハンドルに変換し、それを用いてシーケンス名を出力しています。
local function main()
local mySequence = SelectedSequence() -- Store the handle of the selected sequence
local mySeqInt = HandleToInt(mySequence) -- Store an integer with the handle converted to integer
Printf("The handle for the selected sequence (integer): " .. mySeqInt)
Printf("The name of the selected sequence is: " .. IntToHandle(mySeqInt).name)
end
return main