# Trigger single effect "loop"?

**URL:** <https://wled.discourse.group/t/trigger-single-effect-loop/9423>\
**Category:** Questions\
**Created:** [October 9, 2023, 7:02am UTC](https://wled.discourse.group/t/trigger-single-effect-loop/9423 "2023-10-09T07:02:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kilrah](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/kilrah/32/5927_2.png) [@kilrah](https://wled.discourse.group/u/kilrah)\
**Post date:** [October 9, 2023, 7:02am UTC](https://wled.discourse.group/t/trigger-single-effect-loop/9423/1 "2023-10-09T07:02:18Z")

</div>

I haven’t managed to understand the API/code that presets output yet, but is there a way to say “run this effect e.g. a wipe once from start to finish, then go to the next step” instead of giving a time?  
The time is pretty much impossible to get right based on effect length/speed etc, and effects don’t always start from the beginning when doing so anyway…

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [October 9, 2023, 7:09am UTC](https://wled.discourse.group/t/trigger-single-effect-loop/9423/2 "2023-10-09T07:09:21Z")

</div>

It don’t believe that’s possible without a custom usermod.

One thing you can do to make sure an effect always starts at “the beginning” is to add “tb:0” to the JSON API for the preset with the effect. That sets the internal “timebase” for the effect to 0 and gives you a consistent start point so timing the length of an effect is more reliable.
