| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object API » AddrNative(handle[, handle[, boolean]]) | Version 2.2 |
AddrNative 関数は、ハンドルをコマンドで使用できるアドレス文字列に変換します。
ハンドルの詳細や関連関数については、ハンドル を参照してください。
最初のシーケンスのアドレスを出力します。
Lua |
return function() -- Stores the handle to the first sequence. local mySequence = DataPool().Sequences[1] -- Print the native address. Printf("The full address is: " .. mySequence:AddrNative()) -- Stores a handle to the default DataPool. local myDataPool = DataPool() -- Print the native address to the datapool using the default datapool as a base. Printf("The address in the datapool is: " .. mySequence:AddrNative(myDataPool)) -- Print the native address to the datapool, using the default datapool as a base, with names as strings. Printf("The address in the datapool with quotes around the names is: " .. mySequence:AddrNative(myDataPool, true)) end |