Grasshopper

algorithmic modeling for Rhino

Hi everyone

just a quick question

is there a way to automatically create a single list of numbers like this:

1

2

3

4

5

5

4

3

2

1

and then I would like to be able to change how many numbers I have on it (whether 1-5 or 1-10) 

and also be able to reverse it so that it goes  5..1..5

this list I l need for scaling component

any ideas?

Views: 17795

Replies to This Discussion

The fastest way i think right now and the simpliest

Attachments:

Thanks Carlos

very simple indeed

and what expression did you put in the C input from Series component?

I guess this is what allows to merge the two lists at the end?

cause my lists still don't merge

Attachments:

try flatten tree or flatten in the number component to get only one list.

the expression was c+1 to get the exact number you want but it also counts 0

Attachments:

perfect!

Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service