algorithmic modeling for Rhino
Is there a simple way to encapsulate a data tree before passing it through a component, so that the following components act on the 'envelope' rather than the data within?
As a simple example, shown in the attached definition, supposed there's a couple data structures that I like, and I want to create a toggle to choose between the two trees.
Currently the toggle messes up the structure.
How might one preserve the structures so that the toggle produces one or the other?
Tags:
I can imagine it could work by a type of simple encryption or compression that combines all the data into one string, then later reverses the combination to the original data structure. Similar to combining a bunch of documents into a .zip file in order to email just one attachment.
But, maybe it's not necessary. The stream filter works great, thank you. I haven't come up with any other uses for data encapsulation in GH in this short time.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by