rs485-lpc/lpc_fxloop.lua

8 lines
365 B
Lua
Raw Normal View History

-- 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