Dynamic max for ui dashboard slider node

Hey guys,

Is there a way to feed the ui dashboard slider node an integer for the maximum value? My idea is to take the length of an array and feed this as the maximum of the slider node. Something like:

"msg.ui_slider.max = array.length;"

and this would dynamically control the slider node's maximum value.

1 Like

Yes indeedy...

3 Likes

Thanks, this worked perfectly!
I didn't find any option to tag this post as "solved" or "completed" but it is :slight_smile:

1 Like

Sorry but I don't exactly understand how use.. it's possible put an example?