Grasshopper

algorithmic modeling for Rhino

I would like to know if it is possible that the number slider will display and move on predetermined increments, such as 1 then 1.25, 1.5, 1.75 and so on?

Views: 3861

Replies to This Discussion

This is the only way I can think of to lock it into increments. 

You can always use an expression on the slider.

note however, that there is a difference between the input and output of the sliders,

so manual input might get unpredictable results.

in this example, while the slider input is 47, the output is actually 11.75

 

Hi Daniel and Michael,

 

if it is a logical series of numbers which can be determined by an expression it is possible, you just need to write an expression for your series in the slider menu expression part.

Have a look at the attached file, there I've prepared already a slider for your case.

And if you need a series of numbers which can't be determined by an expression I would suggest to use a value list, this I think would be the easiest way.

 

Best,

Martin.

Attachments:

Thanks to everyone, I really appreciate all the replies. Although Avihay & Pieter's solution Could work I like Martin's better as it actually starts on "1" and that's exactly what I need on my definition, however what Avihay said about manual input is true and could be a problem but for now I can work with the slider. Later consideration to Michael's approach is needed and will explore it at a later time.

Thanks!

Hi Daniel, take a slider, set slider type to integers, right click it and set the expression to x/4.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service