algorithmic modeling for Rhino
I've been trying to figure out a way to explain what I want to achieve.
I created a grid with paneling tools.
I'm trying to filter cells that are the desired size.
Then finally merge those cells to build a framework.
When I view the output of the "ptCell" I have wires, cells, and messes.
With VbScript, I input the wires, and the filter size (via wire.length) . The script runs for each
one of the wires, exits, and then goes to the next value. So how do I know
what index is being processed? I also noticed in the text panel, there is a darkend
row with the index information, followed by the four segment lengths of the cell.
So how can I get that information? How can I save the output to a list of desired cells (or messes)
I hope I'm asking this properly.
Thanks
James Scott
Tags:
Hi Pieter,
For me..."Messes" is the proper terminology (Lol).
Thanks for the response. I'll give your method a shot and let you know how it went.
With scripting, I found the answer late last night. Its uses the Data Tree Access. In my case, I was inputing wires to variable "x" with VB.
A = x.Branch(1)(2).length
This gives me access to the index of each item. Now I can run through a loop and conditionally sort out which branch has the qualifying segment lengths. In turn I can use that to determine which mesh they belong to. Not as clean as your method, I'm sure.
I'll post the script when I finish it. If it works then there will be two ways to do the job. :)
Cheers,
James
PS. How do you get the icons to appear on your blocks?
:)
The icons can be toggled by Draw Icons from the Display menu. You can also set this for components individually by right clicking them and click the icon on the right of the components' name.
I'd like to see your code when you finish it, thanks.
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