GetChildClass(handle)

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

説明

GetChildClass 関数は、オブジェクトの子のクラス名を含む文字列を返します。

引数

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

戻り値

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

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

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