Series Branch Selector

SeriesBranchSelect.ghuser

 

I answered my own question:

http://www.grasshopper3d.com/forum/topics/masking-and-addign-expression?commentId=2985220%3AComment%3A358831&xg_source=activity

 

This cluster takes a data tree

creates a series (like normal)

passes that series (comma delimited) to a string replacement

which replaces any occurance of # in the input mask with the (comma delimited) series

mask is used to cull the original data tree and return the branches

 

 

innards:

please post any derivations you create and help me if there is a more efficient way to do it...

  • Andy Payne

    Couldn't you do the same thing with the Tree Branch component (Sets/Tree/Tree Branch)?  Maybe I don't know exactly what you're after, but it looks like you're trying to select all of the data items on two of your branches (which is what the Tree Branch component does automatically).
  • gotjosh

    @Andy, actually i am selecting specific branches based on a text mask that is composed of a list of numbers... You are right selecting all the data on two branches is quite easy... but this component allows you to select every third item between 34 and 55 (for example)... or any other set of branches based on any path mask.

     

    If i only need 2 branches its no big deal (might as well hand/hard code it), but if i need 20 branches out of 300 that are each 7 apart, it saves some math and typing...