Lua 関数の GetSubfixture は、パッチ・インデックス番号で指定されたフィクスチャのハンドルを返します。
この例では、フィクスチャ・セレクション内の最初のフィクスチャに関するすべての情報を、Dump() 関数で Command Line History に出力しています。
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
GetSubfixture(fixtureIndex):Dump()
else
-- There needs to be a selection of at least one fixture
Printf('Please select a fixture')
end
end