Grasshopper

algorithmic modeling for Rhino

Hi all!

 

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!

xxxxxxxxx

 

Best

Guan

Views: 12328

Replies to This Discussion

Could you not use the tree branch component to call out a branch, then shift the list thats only that branch?

Hi Guan,

Like this?

 

Chris

This is what the "Relative item" components are for.

Can you show an example?

 

Chris

Here is the method I use.

Stan

Attachments:

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.

 

also based on the image, didnt that just shift the branches and not the items within a specific branch or am I missing something?

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.

Stan

just when you think you understand lists, your perception is shattered. lol, I am still not clear on what is happening in this specific case.

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

Thanks Stan.  I get it.  I wasn't sure how the offset mask worked.

 

Chris

Hey,  Did anyone find the solution for 'shifting items with a branch' ? 

I ran into the same problem. I have hexagons and I want to create diagonals with rotation.

Would appreciate if someone has found the solution

Thanks

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service