Grasshopper

algorithmic modeling for Rhino

Hi, 

i have a number slider which increments to .5 and have added 'larger than' component which returns a True boolean which I want to initialize the number slider to then count down from .5 to 0 when met. 

Thanks

Views: 880

Attachments:

Replies to This Discussion

The only way to set the value of a slider is by accessing it through code. I'm not entirely sure what you mean by 'initialize' though.

Thanks for your reply David, 

Yes, I had a feeling about that. This is why I originally tried python; however, I think there might be a way I am overlooking to utilize an 'if' statement or similar expression which would reverse the increment of the slider once boolean is met.

Thank you again. 

If I understood correctly, you could set the expression  If(x<0.5, x, 1-x) on the slider (right click the slider > Expression)

Yes this is exactly what I was look for. Muchas Gracias!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service