Hops error — Grasshopper

I’m not able to use my Hops component, I keep getting this error:
“Object reference not set to an instance of an object.: component “BuildingCurves” (aa4f4a6d-aaa5-4dcd-8198-0b5dbb0b9c07)”

My Hops component has the “Get …” inputs:

And the Group > “RH_OUT:name” outputs:

I’m new to using Hops, perhaps there was some update changing the workflow?

I figured it was something to do with the inputs. I removed the inputs (grouped, light blue), and connected empty mesh and empty curves component, saved and it worked. Not sure what exactly was wrong here.

1 Like

Hei Julian -

If you post the .gh files with the inputs, we could probably take a closer look at this.

Apart from that, the named-group-output procedure is now obsolete. You can use the Context Bake component to create the output.

The Hops documentation was recently updated:

-wim

1 Like

@julian.riise You hit the nail on the head. The issue you were seeing was in fact happening because of the components shown in the blue groups. You have to remember that Hops is sending this definition (in JSON format) over to a headless version of rhino. That headless version of rhino doesn’t contain a document which contains any sort of referenced geometry. So when it runs and tries to find that geometry, you get an error that says that that component which contained a reference to a geometry found in the document couldn’t be found. If you remove those parameters (not the Context Get components but the ones passing the geometry into the Context Get components) then your file will run just fine because the file isn’t having trouble finding the geometry which doesn’t exist in a headless rhino instance. Does that make sense?