Hi everyone,
I’m trying to create streamlines from seed points in Grasshopper using GhPython, but I’m getting unexpected Guid errors when working with data from Deconstruct Plane. I have points and vectors and I need to create streamlines from there.
Context:
- I have a Topos simulation that outputs planes.
- I’m using Deconstruct Plane to extract:
Origin→ input aspts(Point3d)Z→ input asvecs(Vector3d)
- I transfer these using Data Output/Input to a GhPython script that generates streamlines from seed points (
seed_pts).
Problem:
In the GhPython component, I get errors like:
'Guid' object is not iterable'Guid' object has no len()'Guid' object is not subscriptable
Despite flattening all inputs, they seem to arrive as Guid instead of Point3d or Vector3d, causing the script to fail.
What I’ve tried:
- Flattening all inputs
- Checking types using
type()andisinstance() - Attempted to manually convert inputs (e.g., accessing coordinates)
- Basic data validation in the script
Question:
How can I ensure that data passed from Deconstruct Plane through Data Output/Input into GhPython is received as proper Point3d and Vector3d objects? Is there a better method to pass geometry from Grasshopper to GhPython when working with vector fields?
Thanks in advance for any help or pointers!
Vectors.gh (127.2 KB)