Grasshopper

algorithmic modeling for Rhino

hello!

I'm a bit new to using the function programs in Grasshopper, and I need some help with something I imagine is fairly simple!

Basically, I need a specific formula (x+(x/2)) to only be true when an number slider is at 0, or every 20th of that slider 

How do I set up that condition??

Many thanks! :D

Views: 469

Replies to This Discussion

if X is slider input then

if(x mod 20 = 0,(x+(x/2)),false)

Hi, I had to change it just a bit 

if(x mod 20 = 0,(y+(y/2)),false)

but what I need now if for the formula (y+(y/2\)) to compound on each integer of 20

should the formula be re-written? Should I use something like Hoopsnake??

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