Updating slider value after a dynamic modification

Your file is very large and hard to understand, but one thing I notice right away is that you’re using “Set Slider” in tandem with “Get Connected objects” - this is a bad idea as the definition will execute many times every time you try to change the slider. As a rule, don’t use “get connected” if you’re going to modify the state (expire the solution of) the object you’re referencing

Here is what happens, for example:
You change the slider range
this executes “set slider”
this changes all the sliders
this causes “get connected” to execute
this triggers “set slider” again

in extreme cases this can even cause an infinite loop, although in your case I think this is not happening due to the smart way sliders handle changes forced programmatically.

Instead, you should use a “get” component that does not rely on a wired connection, such as get object by nickname, get objects by selection, or get objects in group - these will not recompute when the object they reference expires.

1 Like