Grasshopper

algorithmic modeling for Rhino

Hi there !

line 1 lenght : [x]  
line 2&2bis lenght :  [y]

I have a small problem here. I'd like [y] to modify in fonction [x]. Exemple : When the [x] is betwin 0 and 3 the lenght of [y] doesn't change
If [x] reach 4 then [y] start growing to 1 then 2 when [x] reach 7 etc...

Overall i'd like to put it in a single slider like :

1      -->    x=1    y=0
2      -->    x=2    y=0
3      -->    x=3    y=0
4      -->    x=4    y=1
5      -->    x=5    y=2
6      -->    x=6    y=3
7      -->    x=7    y=4
8      -->    x=7    y=5
9      -->    x=7    y=6
10      -->    x=7    y=7

Any ideas ? Pyhton script maybe ?

Thanks

Views: 326

Attachments:

Replies to This Discussion

Something like this?

Attachments:

Yes ! It's exactly what I meant to do. I did not know that it was possible to add "If" in the expression tool. That make the solution easy and neat.

Thanks a lot for your time and your crystal-clear anwser :)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service