Hops definition fail to output when input data is empty/null

Hey everyone,

I’m facing a problem when calling a Hops definition that has empty data as input; an example will be provided below.

I’m calling a Hops function where I want it to compute operations if it receives input date (i.e offset distance); if no data is found, the definition should just spit out the input data (input curve).

The problem I’m facing is that even though I have workarounds set up in my Hops function, if the Hops component doesn’t receive any input data from parameters I’m bypassing (using the toggle as a gate for the Stream Filter component, or by evaluating null values in my input data), it won’t output anything.
Rhino_uvBmsGpP9M
Is there something I’m getting wrong?

Hops definition used as an example: offset_crv.gh (10.7 KB)

Thanks in advance, cheers!

Solved (thx @Quentin1) :slight_smile: I just had to set the At least input parameter in the Get Number to 0 instead of 1 (by default)

1 Like