@Brian said in Lottie animation controlling parameters?:
I am currently experimenting with controlling Lottie animations using sliders, but once I set up the knob to control a parameter I lose the connection with the Lottie animation. I am sure there is a way to have all three of these elements linked but it's beyond my current coding skills.
Here is a test project ( latest Scriptnode build and rLottie DLL needed):
Got it ā thanks for explaining whatās happening. From what you describe, it sounds like youāve successfully set up a slider/knob to control a parameter, but in the process the link to the Lottie animation playback got overridden (likely because only one connection is being made at a time instead of merging them).
What you probably need is a single control signal that both the Lottie animation and your knob/slider can āsee.ā In Scriptnode (and similar node-based systems), this usually means:
Donāt directly replace the Lottieās input with the knob.
Instead, use a merge/multiply/mix node (or equivalent) to combine the knob value with the animationās internal time parameter.
Feed that merged output into the Lottie node, so the animation continues to play but is also scaled/offset by your slider.
Another approach:
Use the knob to control animation progress directly (frame / totalFrames), bypassing āplayback.ā That way the knob defines where in the animation you are, and you donāt depend on Lottieās internal clock.
If you want both free playback and manual knob scrubbing, youāll need logic that chooses between āauto-timeā and āknob-timeā (for example, a switch or crossfade).
If you share your node setup (or a screenshot), I can suggest the exact node combination to keep all three elements linked.