Get all visible breps in viewport using gh

Hi @dale,

How do I get all breps visible in viewport using gh (including worksessions) ? Or even better, get all breps associated with a layerstate in gh? Any guidance will be helpful.

Thank you.

PS. Tagged @dale since I didn’t know who else to ask this to.

Hi keshavanarayan

All the Elefront 4.3 Reference components have an option when you Right Click to gather Only Visible Objects, there is also a only Referenced Objects setting as well.

1 Like

Thank you so much.

Is there any way to geometry associated with a layer state using gh? @Japhy

One way as stated here is to toogle the layer state in rhino and use the visible objects option. But if I don’t want to do that, is there any possibility?

Are you looking to change the layer or gather from the Rhino document to GH? Either one is possible in Elefront (Reference By Layer & Modify Rhino Objects Attributes components)

I’m only looking to reference the rhino objects in gh. There is a reference by layer component in elefront that I am aware of. But I’m looking for a reference by layer state component @Japhy . By layer state I am refering to the Rhino Document’s layer states. I want to do this instead of typing all the layers in the layer state to the gh document manually.

The image attached has only one layer state. But I am usually having many layer states in my rhino document and I am looking to reference all the geometry in the layer state in gh.
Hope this explains haha.

image

I’m not aware of a reference by layer state component.

You can just use a * if you want all visible layers, then filter by layer.