GetClass(handle)

grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetClass(handle)
Version 2.2

説明

GetClass 関数は、オブジェクトのクラスに関する情報を含む文字列を返します。

引数

  • handle:
    light_userdata 型のハンドルです。
    オブジェクトでコロン記法を用いる場合は省略できます。詳しくは、Lua 関数 - Object API を参照してください。

戻り値

  • string:
    オブジェクトのクラス名を含む文字列を返します。

この例では、選択したシーケンスのクラス名を出力します。

Lua
return function()
-- Gets the class name of the selected sequence.
Printf("The class name is " .. SelectedSequence():GetClass())
end