Grasshopper

algorithmic modeling for Rhino

Switch boolean toggle to true/false with increase/decrease in values

Hi all,

I'm trying to figure out how to create an if function that sets a boolean toggle to true when values are increasing and to false when values are decreasing, but am struggling.

The values being used are from a breath sensor so go up and down with the breath.

Trying to make a breathing tree!

Thanks a lot in advance for any help,

Sean 

Views: 1756

Replies to This Discussion

Hi Sean, what would the resulting value be if the input is (hopefully temporary;)) stationary? ...

You could try something like this:
Or maybe you can edit the script from this discussion to fit your needs.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service