algorithmic modeling for Rhino
Hey,
I am trying to write a script that allows me to mutli-thread the SrfSplit component (since it always takes so long). My inputs are sets of surfaces and corresponding sets of curves. Right now the python component works, but it only takes the first surface and the first curve set and splits them, and then it repeats until finished. What I want is for it to take the entire data trees of both inputs so I can run the split function in parallel.
I understand that I can access the data tree by doing x[x.path(i),j], but how can I tell how many paths there are and how many items are in those paths (like how you can get list length by doing len(x)). And how can I iterate for all the items in a path? Or do I have to move the data into a temporary list (like for i in x:...). Or even better, how do I turn a data tree into a list of list (like x=[[1,2,3],[a,b,c,],[john,jane,jack]])?
Thanks
Tags:
Welcome to
Grasshopper
© 2025 Created by Scott Davidson.
Powered by