Grasshopper

algorithmic modeling for Rhino

Hi,
I have a doubt with processing data from branches and list. I think that it is very easy, but I don’t find how to do.
I have several tree branches with a list in each one, like
{0} {N = 100}
{1} {N = 100}
{2} {N = 100}
....
{60} {N = 100}
The numbers of list are 0 or 1 depending on a previous calculation. The majority of values are always equal to 1.
I would like to add the number of branches where some of their values ​​are equal to 0.
For example:
{0} {1,1,1,1,1,1,1,1,1,...,1}   ''All numbers are 1. Nothing
{1} {1,1,1,1,1, 0 ,1,1,....,1}   ''There is one 0. Add
{2} {1,1,1,1,1, 0 ,1,1,.....1}   ''There is one 0. Add
{3} {1,1,1,1,1,1,1,1,1,...,1}   ''All numbers are 1. Nothing
{4} {1,1,1,1,1, 0 ,1,1,.....1}   ''There is one 0. Add
The total number is 3. 
Thanks.
Marc

Views: 227

Replies to This Discussion

Hi Marc,

Here's a quick way to do it of the top of my head, someone else might have a more simpler/clever way

Hope this is some Help

Matt 

Attachments:

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