# Value of slider in Grasshopper doesn't update with that in Human UI

**URL:** <https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861>\
**Category:** Human UI\
**Created:** [March 9, 2020, 6:22pm UTC](https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861 "2020-03-09T18:22:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [March 9, 2020, 6:22pm UTC](https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861/1 "2020-03-09T18:22:17Z")

</div>

Hi everyone,

I am new to Human UI. I found that the value of sliders in Grasshopper doc doesn’t update when I change the value of sliders in Human UI windows. This annoys me a lot =(  
also, if someone would give me some documentation to Human UI, that would be great

Thanks in advance

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/1/a/1ade824fadf3356fb72a3688ecc55f6f5c816793.png)

---

<div class="post-metadata">

**Author:** ![andheum](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andheum/32/743341_2.png) [@andheum](https://discourse.mcneel.com/u/andheum)\
**Post date:** [March 10, 2020, 12:09am UTC](https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861/2 "2020-03-10T00:09:24Z")

</div>

Try starting with the example files on food4rhino: [Human UI | Food4Rhino](https://www.food4rhino.com/app/human-ui)

---

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [March 10, 2020, 6:03pm UTC](https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861/3 "2020-03-10T18:03:15Z")

</div>

thanks man, I did try the examples, but the values doesn’t change along with that in the UI windows

---

<div class="post-metadata">

**Author:** ![andheum](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andheum/32/743341_2.png) [@andheum](https://discourse.mcneel.com/u/andheum)\
**Post date:** [March 10, 2020, 6:40pm UTC](https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861/4 "2020-03-10T18:40:15Z")

</div>

You have to use a value listener to get the value of the slider in the UI window, it does not update the value of the slider in the grasshopper definition and it is not intended to.

---

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [March 12, 2020, 8:45am UTC](https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861/5 "2020-03-12T08:45:51Z")

</div>

I see but is there any possible ways to fix it?  
when i hit refresh on the grasshopper page, all my input in UI windows will be reset. This makes all the data lost  
thanks

---

<div class="post-metadata">

**Author:** ![andheum](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andheum/32/743341_2.png) [@andheum](https://discourse.mcneel.com/u/andheum)\
**Post date:** [March 12, 2020, 11:08am UTC](https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861/6 "2020-03-12T11:08:15Z")

</div>

There is a technique called “decoupling” that uses metahopper but it is somewhat more advanced/involved. If you feel like trying it there are some example snippets on food4rhino.

> [@Button on/off staying on](https://discourse.mcneel.com/t/button-on-off-staying-on/58718/5):
>
> I have reviewed the file you sent, and reproduced the issue in question (this in itself was not easy!). I am fairly sure the problem is with either your script or with Grasshopper itself - there have been prior reports of scripting components in GH with slow/long running functions failing to return control of mouse events back to the canvas. I do not think this issue in general is something I can solve. However, I can recommend a workaround. In my preliminary tests this approach below eliminate…

---

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [March 12, 2020, 11:27am UTC](https://discourse.mcneel.com/t/value-of-slider-in-grasshopper-doesnt-update-with-that-in-human-ui/97861/7 "2020-03-12T11:27:38Z")

</div>

Thanks dude! I will try my best to learn \<3
