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
Tags:
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?
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
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!
I don't have your spreadsheet, so I used random values instead.
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.
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
© 2024 Created by Scott Davidson. Powered by