Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Python - loading and linking geometry from rhino to grasshopper

$
0
0

Hi All,

I’m trying to write a component similar to the geometry pipeline in grasshopper. Basically, I want to load objects from certain layers to grasshopper and filter those that are inside the polygon. I’m able to input and filter the geometry I need, but the problem is that my output in grasshopper is not linked to rhino geometry. When I’m moving a curve, it’s not being moved in grasshopper.


What was loaded “stays” in place even though its position changed. What I would like to achieve is something similar to right clicking on the curve component and selecting “select one curve” - in this case when I move the selected curve, the change is reflected in grasshopper.

Could someone help me with this? Also when I change my polygon input whole node highlights red and shows error: “1. Solution exception:Object reference not set to an instance of an object.”. (When I try to move some control points).

And last but not least is my approach correct? At the end of the day I wanted to load to grasshopper geometry that is only within a specific area. Could it be that using geometry pipeline would be more efficient - I have a lot of curves? Or coding it by myself is the right approach?
geometry_pipeline_example.3dm (34.5 KB)
input_selection_example.gh (9.7 KB)

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles