algorithmic modeling for Rhino
Hi all,
I know this may be brought up before (similarly) but I was wondering if there was a quick solution that I may not know of:
Often times I find myself conjuring up a script or examining through another wanting to make the script able to run multiple objects at the same time (for example say a script starts off by referencing a curve, but only works with a single instance). Granted, this is the essence of grasshopper and there are some ways to go about this: grafting, tracing branches and fixing them appropriately, etc...but sometimes especially in long codes, it becomes time consuming and difficult to make the code run multiple instances at once. And grafting at the beginning input is never always a one click solution. For those circumstances, I was wondering if there was some VB or Python, or even component something like Hoopsnake, I could use prior to referencing an object so that it runs through a referenced list of objects to run one at a time through the rest of the script. So it would be like a funnel (full of referenced objects) that run one at a time into the rest of the script, if that makes sense. Is this possible?
Tags:
Hi Jordan,
it wouldn't be very hard to code this up, but what do you want to do with the results? If you run the script once for curve A, then curve B, C, D, E and F. Where should the results of A be stored? Should they all be appended to the same list? Should they all be baked?
--
David Rutten
david@mcneel.com
Tirol, Austria
David as always thanks for your support. In response to your question, that is what can be interesting. But for simplicity sake, I am fine with them running out all into one final list.
Were you ever able to find a solution to your question? I'm searching around for an answer to a similar question.
I am using data pulled from Excel as input for a series of scripts the needs to run once for each item I bring in. The quantity of items brought in has the potential to change, so I would need a way to run the same script 'n' amount of times, while also creating a list of outputs that match the input order. My scripts are too complex, and my Grasshopper prowess is too limited, for this to be achieved through list/tree management. Also I looked at Hoopsnake, and it gets close to being a viable solution, but I was not sure how to make Hoopsnake create a running list of output data for each one of its loops.
Thanks for the help!
Drew
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