# Update Sliders in Python 3

**URL:** <https://discourse.mcneel.com/t/update-sliders-in-python-3/180684>\
**Category:** Scripting\
**Tags:** windows, slider, rhino8, python3\
**Created:** [April 23, 2024, 8:27am UTC](https://discourse.mcneel.com/t/update-sliders-in-python-3/180684 "2024-04-23T08:27:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![claire.DP](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/claire.dp/32/570185_2.png) [@claire.DP](https://discourse.mcneel.com/u/claire.DP)\
**Post date:** [April 23, 2024, 8:27am UTC](https://discourse.mcneel.com/t/update-sliders-in-python-3/180684/1 "2024-04-23T08:27:02Z")

</div>

Hello everyone,

During my PhD research, I developed ghPython components for genetic optimization on Rhino 7 using valuable resources found on this forum. I am now planning to adapt these components to Rhino 8 using Python 3, allowing for the integration of the NumPy and pymoo libraries to further enhance their capabilities.

However, I face two problems:

(1) In the rhino7 version, to create my populations, I first retrieve information on the GH\_NumberSlider (s) using the methods (s.Minimum, s.Maximum, s.NickName, s.DecimalPlaces, s.Count, s.Decimals, s.TickCount). With python 3, I can’t find this data. I get some of it with the s.InstanceDescription method, but this only works for sliders and not GenePool components.

(2) I can’t change the values of sliders or GenePools either. In Rhino 7, I used to proceed as follows:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/b/4/bb4ada883592fe7bb329ea250b6d7c8b2d544c94.png)

If someone had an idea on how they could help me, that would be great!
