| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetAttributeByUIChannel(integer) | Version 2.2 |
GetAttributeByUIChannel 関数は、「UIチャンネル・インデックス」に基づくアトリビュートへのハンドルを返します。インデックス番号は Parameter List で確認できます。
現在のセレクションにある最初のフィクスチャの最初のアトリビュートについて、「ネイティブ」なアドレスを出力します。
Lua |
return function() -- Get a handle to the first fixture in the current selection local fixtureIndex = SelectionFirst() -- Get the UI Channel Index number for the first attribute for the fixture local channelIndex = GetUIChannelIndex(fixtureIndex,0) -- Print the native address for the attribute with the handle Printf("The native addr for the attribute is: %s",GetAttributeByUIChannel(channelIndex):AddrNative()) end |