Grasshopper

algorithmic modeling for Rhino

How do I get the number of branches in a list?  For example, with the attached panel, I want to return 9.  List length returns 11.  This must be simple, but I can't find it.  Thanks,  --Mitch

Views: 3125

Attachments:

Replies to This Discussion

OK, I got one solution, [List Item] with 0 (gets first item on each branch) > [Flatten] > [List Length]... Better way? --Mitch
The ParamViewer exports a list of all the Branch Paths. So if you link a List Length component to a ParamViewer, you should get 9.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
OK, thanks David! --Mitch

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service