| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetClassDerivationLevel(string) | Version 2.2 |
GetClassDerivationLevel 関数は、クラス名に基づく派生レベル・インデックスを整数で返します。
Pool クラスのインデックス番号を Command Line History に出力します。
Lua |
return function() -- Get the index integer for the "Pool" class. local classDerivationLevel = GetClassDerivationLevel("Pool") -- Create a valid Printf return. if classDerivationLevel == nil then Printf("The return is nil") else Printf("The ClassDerivationLevel index for 'Pool' is: %i", classDerivationLevel) end end |