Grasshopper

algorithmic modeling for Rhino

SeriesBranchSelect.ghuser

 

I answered my own question:

http://www.grasshopper3d.com/forum/topics/masking-and-addign-expres...

 

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...

Views: 2349

Comment

You need to be a member of Grasshopper to add comments!

Comment by gotjosh on August 9, 2011 at 2:30pm

@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...

Comment by Andy Payne on August 9, 2011 at 12:11pm
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).

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service