| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » FixtureType() | Version 2.2 |
FixtureType 関数は、フィクスチャタイプへのハンドルを返します。この関数は引数を受け取りませんが、コマンドラインのデスティネーションがフィクスチャタイプの場合に、関数を実行する必要があります。コマンドラインのデスティネーションが有効なフィクスチャタイプでない場合、関数は nil を返します。
この関数は、引数を受け取りません。
ショーの2番目のフィクスチャタイプに関する情報を出力します。
Lua |
return function () -- The function returns the handle to the fixture at the current command line destination. -- Change to the "FixtureType" destination. Cmd("ChangeDestination FixtureType") -- Change to the second fixture type in the show. Cmd("ChangeDestination 2") -- Dump information about the Fixture Type handle. Printf("=============== START OF DUMP ===============") FixtureType():Dump() Printf("================ END OF DUMP ================") -- Return the command line destination to the Root. Cmd("ChangeDestination Root") end |