| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetSubfixture(integer) | Version 2.2 |
GetSubfixture 関数は、パッチ・インデックス番号で指定されたフィクスチャのハンドルを返します。
フィクスチャ・セレクション内の最初のフィクスチャに関するすべての情報を、Dump() 関数を用いて Command Line History に出力します。
Lua |
return function () -- Check for a fixture selection, by returning an index for the first fixture if (SelectionFirst()) then -- There is a fixture selection, store the index for the first fixture local fixtureIndex = SelectionFirst() -- Dump all information about the fixture Printf("=============== START OF DUMP ===============") GetSubfixture(fixtureIndex):Dump() Printf("================ END OF DUMP ================") else -- There needs to be a selection of at least one fixture Printf("Please select a fixture") end end |