Grasshopper

algorithmic modeling for Rhino

does anybody have a workflow to limit a slider´s output range to another sliders value.
i made a small example to illustrate this:
the definition consists of three concentric circles which are elevated to different z values. the z-value of the top circle should not be smaller than the one of the center circle, the center circle should not be set higher than the top circle or lower than the bottom circle. when lifting the bottom circle higher than the center circle, the center circle should automatically lift too, etc ...

Views: 506

Attachments:

Replies to This Discussion

You can 'Remap' the Z value of the middle circle so that a 0..1 slider keeps it between the bottom and top circles:

@ joseph:
thanks for the help !! its a very good solution for my more complex solution (that i did not post here).

in many cases the newly introduced slider is even more useful than than the original slider, because it reflects a "percentage" value, as it ranges from 0 to 1.
in the example posted here it would be better to see the actual z position of the middle circle. one can of course solve this by using a line dimension copmponent to see the value in the rhino viewport or do some maths and show the value in a panel.

as a wish i would like to have a slider component with "numeric domain" as input parameters (maybe also "rounding" and "digits"). the slider position and value then would update automatically, if altering the numeric domain results in a value outside the range.

The 'Remap R' output is the Z value you want.  You can display that in a panel or use it in other ways.

thanks again !

yes, obviously its the actual z value as it goes directly into the move vector (silly me)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service