I’m trying to write a Python Script that will parallel process a MeshRay function using the code below, but I keep getting the following error:
Runtime error (ValueErrorException): need more than 1 values to unpack
line 10, in script
I’m new to Python scripting, and I’m not exactly sure how to fix this. Any help would be much appreciated!
import ghpythonlib.components as ghcomp import ghpythonlib.parallel def meshRayIntersect(mesh): result = ghcomp.MeshXRay(mesh, pt, vec) if result: return (result.point, result.hit) if parallel: pts, boolean = ghpythonlib.parallel.run(meshRayIntersect, meshes, True) else: pts = ghcomp.MeshXRay(meshes, pt, vec).point boolean = ghcomp.MeshXRay(meshes, pt, vec).hit