Grasshopper

algorithmic modeling for Rhino

Hello,

I have a question about adding up numbers. I have a start value and five numbers that can differ. Now I want to write a script that is able to show the intermediate results.

For instance (see figure):

Start point       0

1:     2

2:     6

3:     3

4:     9

5:     1

The results I want to have is:

Outcome #1:  2

Outcome #2:  8

Outcome #3:  11

Outcome #4:  20

Outcome #5:  21  

Hope somebody has a solution

Views: 204

Attachments:

Replies to This Discussion

Don't know about python, but you can do this with the native MassAddition component.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service