Lua 関数の HasActivePlayback は、オブジェクトに現在アクティブな再生があるかどうか(例: シーケンスにアクティブなキューがあるか)を表す boolean 値を返します。
選択されているシーケンスにアクティブな再生があるどうかについて出力するには、以下のようなコードでプラグインを作成します。
local function main()
local selectedSequence = SelectedSequence() -- Stores the handle of the selected sequence.
-- The following is an 'if' that gives different feedback based on the playback status.
if selectedSequence:HasActivePlayback() then
Printf("Sequence '" ..selectedSequence.name.. "' has active playback.")
else
Printf("Sequence '" ..selectedSequence.name.. "' has NO active playback.")
end
end
return main