Grasshopper

algorithmic modeling for Rhino

hello 

I am using DIVA for light simulation, I need to inter inputs of Month day and time, I have three times in only four days a year thats 12 combinations,

March5 07:00, 09:00, 12:00

June11 07:00, 09:00, 12:00

September10 07:00, 09:00, 12:00

December10 07:00, 09:00, 12:00

how can I use one slider to control all of these inputs?

the other related question how can I make the slider moves every three digits, 3,6,9,12....

I tried to do that in the slider properties but I couldn't, what is the different between the max and range of the slider??

Regards,

Ahmad

Views: 339

Attachments:

Replies to This Discussion

The difference between max and range is that max identifies the highest possible value whereas range identifies the difference between min and max. If min is zero, then max and range are always the same. But if min = 5 and max = 12, then the range will be (12-5) = 7.

If you have only a fixed number of values, why not use a Value List to encode those?

You can still use a slider to select a value out of a list of presets, but the UI of the ValueList is more friendly, especially if the list of presets isn't particularly continuous. You can extend a single ValueList to have all 12 preset date+time combos as well.

Sliders values can be post-processed using an expression. For example you could add the 'x*3' expression to a slider, and then the value 0, 1, 2, 3, ... would be mapped to 0, 3, 6, 9, ...

Attachments:

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