Grasshopper

algorithmic modeling for Rhino

Hi. I'm trying to cull the last branch in a data tree, but can't figure out how to do it. The tricky thing is that the number of branches will change. Probably an easy thing to do, but I can't figure it out right now.

Views: 4833

Replies to This Discussion

Hi Stencil,

There might be a simpler way but this works:


use the para viewer's output to get a list of path structures and then remove the last one using the Cull index and list length(-1) to get a new list that you can plug into the Retrieve a specific Branch component.

Best regards,
Danny
Attachments:
From the param viewer output, use a shift list with the value set to -1...use that to rebuild the tree.

PS in the 'shift list' you must use a toggle false in input wrap, if not id does't works.

Thanks for helping out!

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