Grasshopper

algorithmic modeling for Rhino

Different culling patterns for each branch in a tree (based on another tree structure)

Hi,

I have a tree_A with the same amount of items in each branch, and I would like to cull items so that each branch has a different length.

The way I want to do this is by using another tree_B as a "cull pattern", i.e. shortening each branch in tree_A to match the list length of the corresponding branch in the tree_B.

If I hook up tree_B to a boolean parameter it replaces each item with a "True" value, so I was trying to fill up each branch with "False" values so that the list length of all branches match the branches in tree_A. Maybe then the cull component would work but I haven't succeeded yet.

Does that make any sense? Is this even the right approach?

Please see attached image and thanks for any help!

Views: 1051

Attachments:

Replies to This Discussion

Hello !

A late answer but are you looking for something like this ?

Use the list lenght from your tree_B as an input for the split list component.

Wow that works of course...I found another way but it was way too complicated. Thanks for the tip!
Nice!

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