Grasshopper

algorithmic modeling for Rhino

Hi all! Is any way to make a slider with multiple domains??? Lets say for example from 1-5 and 7-10, but in the same slider. The idea is to have a jump in the slider from 5 to 7 so you can´t choose this values.

I´m not looking for dispatch or conditional statement after the slider selection number, but something that applies in the slider.

Tks!

Views: 2592

Replies to This Discussion

Hello daniel,

this could be a quick solution but still if second value exceeds the third one, you still have to adjust the third accordingly.

best

alex

Thanks Alex, but in the example parameters are independent so you can put any value in any slider... I´m looking for something that has 2 limited values, from 1 to 5 and 7 to 10 for example

Its gene pool found in tab parameter/utilities

Since there is no way to configure a slider for multiple domains, I don't see any way other than some post-processing of the slider value.  This works:

Attachments:

Here is a much better implementation that will work with any number of domains.  It uses 'FDom (Find Domain)':

Attachments:

Thanks Joseph,

It works but I was looking for a solution in the slider and not in the result...

Working on it!!!

Hi Daniel, I got something that feels a bit like a cheat to achieve this... (I think I'm relying on GH autoconversions here but I can't think of any other way):
For your case: set the expression for the 0 To 10 slider to be "If(Distance(x,6)≥1,x. NaN" :



Attachments:

hmm, sloppy sorry..., I meant to say (as the screen capture said):
"If(Distance(x,6)≥1,x, NaN)"

Hi Pieter, it works, tks!

You give me a good idea to solve it!

I post the solution in the reply in order to leave it available for anyone...

Thanks you all!!!

If(x<5,x,If(x<7,NaN,x))

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service