Grasshopper

algorithmic modeling for Rhino

Number of Objects in Branches from a lopsided Data Tree

I need to list the number of items in each branch of a data tree. Within a data tree which is a bit lopsided.

List length doesn't work because of data structure?

Why can't I just use the text in the param viewer?

Views: 515

Attachments:

Replies to This Discussion

Param viewer's outputs would be "a list of paths" so, in your case, it will return "14"

Why don't you connect your list length component directly to output node of "Merge"?

Thanks, it works from the Merge. I am interested though, after David's comment below.. Why it is not picking this up from the Param-viewer??

Use Tree Statistics instead of the Param Viewer...this will give you the number of items in each branch.

That works too! Thanks.

List Length should work. What does it output?

Methods above work, why not from Param viewer. I attach the definition FYI

J

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service