Curve selecting function based on layer name

So lately, I’ve been trying to build a function that allows me to select specific curves based on layer names. For example, I want to select the outer walls in a house drawing. I’m running into a couple of issues: first, when I try to scale the drawing, all the curves become one type, and even though they seem to be separated, I can’t actually split them. The second issue is that I can’t figure out how to write a function that selects the curves based on the checked layer.

I would really appreciate any help or tips you can offer! I’m a beginner in Grasshopper, but I do have some basic knowledge of it and Python

Are you using Rhino 8?

I guess so :+1:

1 Like

Didn’t notice, I’m on my phone…

Ok so in Rhino 8 you can use the Grasshopper Rhino components to import, filter and bake content.

I’m wondering… do you need to select the curves to do something in Rhino or is the selection more kind of a filtering to work with the Rhino geometry in Grasshopper?

1 Like

In Rhino, there is the old manual way of right-clicking the layer name (in the Layers panel) and choosing ‘Select Objects’ to get all the geometry on a layer.

it is both i want to use the selcetet curve to creat a polygon. i have manged to creat a function yet it fill it select only one curve from each layer.

well ya thx you, it needed at the end to do some maule worke, eathier redraw or as you mintiond. but i do found a new problem when select the wanted layer and want to desplay the curvs it only take one curve from each selected layer