generative modeling for Rhino
lets go straight to the point. I have a list within a list. so therefore i have a few braches, and each branch has a list inside it.
Is there a way to shift the whole branch list, instead of the list within the branch list when i use the shift command.
A short and fast way would be great.
Thank you so much in advance!
Can you show an example?
Here is the method I use.
What would be a specific situation this branch shifting would be used. Ive never run into having to use it? I am always interested in expanding my grasshopper knowledge and have a decent understanding of lists but this still kind of confuses me.
Your observation is keen, only the branches shifted, items within the list did not.
The simple answer to your first question regarding when you might use this is: Data Matching.
The more involved answer might be: As definitions increase in complexity and the interaction between various lists derived by disparate upstream sources come together and are eventually combined for input to downstream components, there is a propensity for lists to naturally evolve into different organizational tree forms thereby creating list item (or branch) mismatching and therefore, an undesired result. The need to manipulate the tree structure of a list of data to prepare it for for interaction with another list with dissimilar tree structure becomes most critical. In a nut shell, the tree structure can be manipulated to get the right branches as well as list items in both input trees paired up properly and interacting as desired.
I hope this might wet your appetite to explore data matching. The more I chase GH the prize, the more I realize that mastery of data matching is paramount.
Yeh, me too. I reside in a constant state of shattered perception.
If you are in the mood for a purely academic challenge that might offer self discovery of data matching importance, try this.
In GH, create say, a wall, build it out of an array of individual panels layed out in a general grid say 5 x 20 or 100 panels. The panels do not need to touch. Build into your definition, parametrics to modify several aspects of the panels...size, positioning, rotation, corner radius, thickness, etc. Be sure to complicate your parametrics to include modulated variations within each parametric. Now change the parametrics on only 16 of the panels in the array. Place panels with varied parametrics in a specific pattern within the overall array...say a square arrangement. Now change the 16 special panels to another set of panels but change their arrangement to a rectangle pattern. Try several different patterns and/or placement of the cutout pattern.
If you choose to accept this mission, you will likely have to encounter the need to match data precisely and grow to find the 'relative components' quite useful for manipulation for both branches and list items.
Good luck, this message will self destruct in ...........