# Slider Maximum & another problem

**URL:** <https://forum.dynamobim.com/t/slider-maximum-another-problem/626>\
**Category:** Packages\
**Created:** [October 11, 2014, 11:18pm UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626 "2014-10-11T23:18:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![snp](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@snp](https://forum.dynamobim.com/u/snp)\
**Post date:** [October 11, 2014, 11:18pm UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/1 "2014-10-11T23:18:23Z")

</div>

Hi Guys,

I have two issues and would really appreciate your help.

I am new to dynamo but do have some background in coding, though I am a architectural student.

&nbsp;

1. I would like to access the maximum value of a slider. In this case I would like to set the maximum to the length of the _list.combinations_ node.

2. I am kind of puzzled with my second problem. I used a _list.permutations_ node when I started on this, and I was able to see the resulting geometry.

But after switching the _list.permutations_ node for the _list.combinations_ node the whole thing ceased to work. What am I missing here? I am pretty sure

I didn´t change anything else.

&nbsp;

![Unbenannt](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/1cb0e7f8ecc06ac35d5dd1a80909571bed413bdf.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

kind regards from Austria and thanks in advance

snp

---

<div class="post-metadata">

**Author:** ![snp](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@snp](https://forum.dynamobim.com/u/snp)\
**Post date:** [October 11, 2014, 11:33pm UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/2 "2014-10-11T23:33:23Z")

</div>

Hi again,

&nbsp;

After restarting Revit and Dynamo issue 2) is solved.

But I still would like to access the maximum slider value as mentioned before. Any ideas?

&nbsp;

thanks snp

---

<div class="post-metadata">

**Author:** ![Peter\_Kompolschek](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@Peter\_Kompolschek](https://forum.dynamobim.com/u/Peter_Kompolschek)\
**Post date:** [October 12, 2014, 5:44am UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/3 "2014-10-12T05:44:46Z")

</div>

hi, don’t know if i understand you right.

but if you click on then sliders down pointing arrow (lower right of the node) the selectors for min / max get visible???

---

<div class="post-metadata">

**Author:** ![snp](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@snp](https://forum.dynamobim.com/u/snp)\
**Post date:** [October 12, 2014, 4:28pm UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/4 "2014-10-12T16:28:27Z")

</div>

Hi Peter,

Thank you for the reply. I actually would like to channel an input, like the length of a list, into the maximum value.

&nbsp;

SNP

---

<div class="post-metadata">

**Author:** ![Danny\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@Danny\_Nguyen](https://forum.dynamobim.com/u/Danny_Nguyen)\
**Post date:** [October 12, 2014, 8:57pm UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/5 "2014-10-12T20:57:10Z")

</div>

Hi Snp,

To clarify, you want an external number to determine the Max value of a slider automatically?

If so, I don’t think there is a current node for that. The way I would approach it right now, and you might be able to create your own custom node to make the code a little neater is in the image below. Essentially, you use a slider with a range 0 - 1 and then multiple the list length. It is a bit messy, but it works…

![C08](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/68224545e6908ff3c063e967a414ebf57a10ca3e.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [October 12, 2014, 10:47pm UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/6 "2014-10-12T22:47:32Z")

</div>

I’d use a bit of python to solve the issue:

![2014-10-13_120807](http://dynamobim.org/wp-content/uploads/forum-assets/dimiter_vmail-bg/10/13/2014-10-13_120807-300x200.jpg)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

[get max index](http://dynamobim.org/wp-content/uploads/forum-assets/dimiter_vmail-bg/10/13/get-max-index.dyn)

If the slider value is \< to the list length, use the slider value. If the slider value is \> than the list length use the last index of the list.

---

<div class="post-metadata">

**Author:** ![snp](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@snp](https://forum.dynamobim.com/u/snp)\
**Post date:** [October 13, 2014, 1:51am UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/7 "2014-10-13T01:51:48Z")

</div>

Hi guys,

I tried Danny´s suggestion, and it actually works quit well. I couldn´t figure out Dimitar´s version, since I have close to none experience with python. But it looks good as well.

Anyway, Danny´s idea works well for me at the moment, so I will stick to it for now.

&nbsp;

Would be great to have a node for this though.

Thank you guys, you rock!

&nbsp;

snp

---

<div class="post-metadata">

**Author:** ![Ritesh\_Chandawar](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@Ritesh\_Chandawar](https://forum.dynamobim.com/u/Ritesh_Chandawar)\
**Post date:** [October 13, 2014, 2:53am UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/8 "2014-10-13T02:53:50Z")

</div>

Hello [Snp](http://dynamobim.org/forums/users/snp/ "View snp's profile"),

I have logged issue for improvements. (MAGN-5024)

Thanks,

Ritesh

&nbsp;

---

<div class="post-metadata">

**Author:** ![snp](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@snp](https://forum.dynamobim.com/u/snp)\
**Post date:** [October 13, 2014, 8:21pm UTC](https://forum.dynamobim.com/t/slider-maximum-another-problem/626/9 "2014-10-13T20:21:55Z")

</div>

thx!
