algorithmic modeling for Rhino
I'm trying to use the Python "parallel" module to take advantage of multithreading as described in this blog post: https://stevebaer.wordpress.com/2013/12/11/ghpython-node-in-code/
I'm specifically trying to speed up the Project Point node because the computer freezes when I attempt to project ~15000 points onto a surface in grasshopper. So I've set up a very short Python script that is supposed to emulate the Project Point node, but with the parallel module's multithreading capabilities to test if that will help overcome the bottleneck. Unfortunately, Python throws an AggregateException when I attempted to run the script. I've checked my function definition without the parallel module and it works (I ran it using the lines that are now comments in the attached image).
I've looked into the module's parallel.py code, which apparently has an issue with my code on its line 27, but can't determine what to do. I've attached that module's code for reference.
Has anyone had any success overcoming these kinds of issues?
Thanks!
Tags:
I tried what you recommended, and it calculated 40K projected points in ~10 seconds. Thank you!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by