rs485-lpc/lpc_fxloop.lua

8 lines
365 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Trigger #13 "FXLoop" (Type: Timeline Ended, Timeline: Any)
-- 时间线播到末尾时重新启动同一时间线,实现循环播放。
-- SC 释放时间线触发的是 Timeline Released(不是 Ended),不会误重启。
local tv = get_trigger_variable(1)
if tv == nil then return end
local tl = get_timeline(tv.integer)
if tl ~= nil then tl:start() end