# Sliders Values and Names to Text?

**URL:** <https://discourse.mcneel.com/t/sliders-values-and-names-to-text/87036>\
**Category:** Grasshopper\
**Tags:** scripting\
**Created:** [August 4, 2019, 4:05am UTC](https://discourse.mcneel.com/t/sliders-values-and-names-to-text/87036 "2019-08-04T04:05:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [August 4, 2019, 4:05am UTC](https://discourse.mcneel.com/t/sliders-values-and-names-to-text/87036/1 "2019-08-04T04:05:17Z")

</div>

Hi everyone,

I was wondering if it would be possible to have all the values of the sliders in a document + their name transcribed onto a panel. Maybe with a C# script?

Thanks in advance  
Shynn

---

<div class="post-metadata">

**Author:** ![HS\_Kim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hs_kim/32/473975_2.png) [@HS\_Kim](https://discourse.mcneel.com/u/HS_Kim)\
**Post date:** [August 4, 2019, 6:53am UTC](https://discourse.mcneel.com/t/sliders-values-and-names-to-text/87036/2 "2019-08-04T06:53:18Z")

</div>

You could use Metahopper features that does this, but you should select your sliders whatever order you want first.  
Maybe some script can offer you a non-selective way?

 ![Canvas%20at%2014%3B51%3B39](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/f/6/f64159047243cefd4f78242c1689948c66c2b352.png)

---

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [August 4, 2019, 7:05am UTC](https://discourse.mcneel.com/t/sliders-values-and-names-to-text/87036/3 "2019-08-04T07:05:27Z")

</div>

Here’s a GHPython approach:

![2019-08-04%2009_03_49-Grasshopper%20-%20190804_GetSliderNamesValues_GHPython_00_](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/d/4/d445b6484e04ae952a8839bbc1853ec67c2dbbf4.png)  
[190804\_GetSliderNamesValues\_GHPython\_00.gh](https://discourse.mcneel.com/uploads/short-url/jtHabjS1Z2EKzg5B5LjzFe6pAcw.gh) (3.2 KB)

**Edit:** With some slight formatting:  
 ![2019-08-04%2009_11_02-Grasshopper%20-%20190804_GetSliderNamesValues_GHPython_01](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/0/b/0b20b4f55f4115156ab6911d47e97cf16e593128.png)  
[190804\_GetSliderNamesValues\_GHPython\_01.gh](https://discourse.mcneel.com/uploads/short-url/pBnAcFkEBhCAYz8RXeHXWVxKI4L.gh) (3.0 KB)

---

<div class="post-metadata">

**Author:** ![PeterFotiadis](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/peterfotiadis/32/472316_2.png) [@PeterFotiadis](https://discourse.mcneel.com/u/PeterFotiadis)\
**Post date:** [August 4, 2019, 7:21am UTC](https://discourse.mcneel.com/t/sliders-values-and-names-to-text/87036/4 "2019-08-04T07:21:27Z")

</div>

You can start with something like this in C#

 ![Screen%20Shot%20067](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/6/9/6972875fcfe33753104f6c6bca8ab39d1a65b93e.jpeg)

---

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [August 4, 2019, 11:31pm UTC](https://discourse.mcneel.com/t/sliders-values-and-names-to-text/87036/5 "2019-08-04T23:31:51Z")

</div>

Thank you guys!

---

<div class="post-metadata">

**Author:** ![PeterFotiadis](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/peterfotiadis/32/472316_2.png) [@PeterFotiadis](https://discourse.mcneel.com/u/PeterFotiadis)\
**Post date:** [August 5, 2019, 6:20am UTC](https://discourse.mcneel.com/t/sliders-values-and-names-to-text/87036/6 "2019-08-05T06:20:59Z")

</div>

In fact this is the proper/classic way to do it \> do a class …

 ![Screen%20Shot%20068](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/c/2c6f6f80d6a3d3c457aef862345ebf3f3e939a33.jpeg)

… gather any “properties” you want and then write any query imaginable:

[Slider\_GetInfo\_V1.gh](https://discourse.mcneel.com/uploads/short-url/q81Y3nFKQ3HQjkJZFNshkDfxfaK.gh) (116.7 KB)
