algorithmic modeling for Rhino
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...
Comment
@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...
Welcome to
Grasshopper
© 2024 Created by Scott Davidson. Powered by
You need to be a member of Grasshopper to add comments!