Grasshopper

algorithmic modeling for Rhino

Hi there,

I am taking data from an excel sheet, and I'm wondering if there is a component that takes a tree and gives each item as a separate output that I can then plug into other components? I'm using this definition to take the area of certain rooms and output them as a grid of boxes in rhino but as. I realise that with the cherry picker you can choose a single item in a list, but is there a way to do this automatically? I have 24 items in the list so far, but it's quite tedious making a separate branch manually for each one as a separate output. Is there a component like the cherry picker than can separate a list into separate outputs?

Any comments on the efficiency of how I've been going about it would be great, on a site note.

Thanks

Views: 2178

Attachments:

Replies to This Discussion

You can do it with List Item - just zoom in to the output nodes and click that little plus sign to add as much outputs as needed.

But it really seems that you're going in the wrong direction. Or maybe I don't understand you correctly.

Thanks! I'll try that. Basically I want the output as shown in Rhino where the objects are displayed on a grid where I can then edit the length and width of each volume while keeping the area of each the same. I've each object assigned to a point made in Rhino too so I can later start moving each one around while keeping the ability to change its dimensions. Know any other way that I could achieve that with less copying and pasting?

Attachments:

Yep, coping and pasting is not the best programming practice for sure.

If you could share your def I could show you how it can be simplified

Posted in the comment below :)

Impossible to read the screen shot of your GH code, except to see you have copied code many times.  It's _ALWAYS_ better to post your actual code.

The solution is likely to be one set of code driven by a list of length (and/or width) values in a text panel that you can edit.

Posted below. Thanks for having a look!

Attachments:

I don't have your spreadsheet, so I used random values instead.

Attachments:

That seemed surprisingly simple. I'm still trying to get my head around trees. Thanks!

P.S.  Note the difference between these two configurations (below); my panels have data for only 13 items while there are 25 points in your grid:

Getting a grip on data trees is CRUCIAL to having fun with GH!

P.P.S.  Also note that the points have been internalized in the GH file so the Rhino file is no longer needed.

Attachments:

That is awesome thanks! and yep, need to figure out all that grafting and flattening!

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