|
grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object API » GetFaderText(handle, {[string], [integer]}) |
Version 2.2 |
GetFaderText 関数は、オブジェクトのフェーダ値を示す文字列を返します。
選択したシーケンスの Master および Rate フェーダの値を文字列で出力します。
Lua |
return function() -- SelectedSequence() creates a handle to the selected sequence. local selectedSequence = SelectedSequence() -- Get the value for the Master fader. Since it is the default, no token needs to be defined. local faderMasterText = selectedSequence:GetFaderText({}) -- Get the value for the Rate fader. local faderRateText = selectedSequence:GetFaderText({token="FaderRate"}) -- Print feedback with the values. Printf("The selected sequence Master fader value text is: ".. tostring(faderMasterText)) Printf("The selected sequence Rate fader value text is: ".. tostring(faderRateText)) end |