Grasshopper

algorithmic modeling for Rhino

Dear All,

In the Pic attached you will see in red the problem i am having. When i increase the U V values in my Mesh component i want the Slider to update the new max range of points to the number sliders max range so i dont have to always change it manuelly.  

In the example i increased the V value from 30 to 32 and ofcourse get more points but my number slider input for the list item component stays on its set max. How can i make the max of the number slider update with my changes?

Sorry i hope it is not that trival of a question :)

Regards,

Saqib

Views: 1747

Attachments:

Replies to This Discussion

This (if I've got it correctly) IS NOT a trivial question at all: Controlling slider(s) [usually via their NickName(s)] values is only possible via code: therefor you can have any "dependency" under your command (for instance: if this (or any of these) changes, reset that or make it to obtain a.desired value or get the next incremental value or the previous one ... etc etc).

Notify if you think that such a solution could be useful to you.

You can do this from code, looking for sliders in the document and changing their ranges. Look on this forum.
Or, as a simple alternative, you can do this, multiply the size of the collection by a number between 0 and 1 to access all indices using a fixed interval (0~1):
Or this, even better:

Thank you that helped a lot :)

Thank you Anders. Good to know that the awnser wasnt that easy :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service