|
grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object API » SetFader(handle, {[number], [boolean], [string]}) |
Version 2.2 |
SetFader 関数は、フェーダを指定されたレベルに設定します。フェーダを持つオブジェクトで用いる必要があります。
この関数は何も返しません。
この例では、選択したシーケンスの Master フェーダを100%に変更し、Time フェーダを5秒に変更して、それを有効にします。
Lua |
return function() -- SelectedSequence() creates a handle to the selected sequence. local selectedSequence = SelectedSequence() -- Set the master fader to 100. The FaderMaster is the default token, so it can be omitted. selectedSequence:SetFader({value=100.0}) -- Set the time fader to 5 seconds and enable the fader. selectedSequence:SetFader({value=50.0, faderEnabled=1, token="FaderTime"}) end |