Extract only lines from a list

I have a list with nulls, meshes and lines. How do I extract just the lines from them?

One thing you could do, is simply hook up a Line component. It will turn red, but leave you with only lines, and Null values for items which are not.

Yes, that’s exactly what I did. The problem is I can’t add that line inside a cluster as it makes the whole cluster red making it nonfunctional.
Moreover there should be some other neat way right?

Why is that? Because of the Nulls?

I could show you a Python way, if you’re insterested?

Why is that? Because of the Nulls?

Nope, it’s because of the mesh to line conversion error.

I could show you a Python way, if you’re insterested?

Sure!

Here you go:

filter_lines.gh (6.5 KB)

It’s rather simple.

It is simple. Thanks @diff-arch!

Is it possible to increase the thickness of these lines? The look quite thin for the purpose of illustrations.

If you want to change the line weights for display purposes, you can use PreviewLW (Custom Preview Lineweights) from the Human add-on. Otherwise, you need to bake the lines to Rhino and fiddle with their real weights.

1 Like