If the geometry is a curve then output 1

Greetings everyone,
I inputted various types of geometry in a set, and I wish it could output 1 if it is a curve, while output 2 if a surface.

Is there any tool that can achieve this goal ? Like the if-then structure?

Here’s an example.

GyoTyp_re.gh (11.3 KB)


Two other ways to filter the objects or get the object type…

Rhino - RhinoScriptSyntax (rhino3d.com)

object_type.gh (9.0 KB)


Thank you Kim and Martin !

1 Like