Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5846

Select Objects by Layer rs.ObjectsByLayer

$
0
0

Hello,

I’m trying to make a very small script that selects objects based on their layer name in python.

import rhinoscriptsyntax as rs

if run is True:
    rs.ObjectsByLayer(layer_name, select=False)
    x = layer_name

I thought it would be pretty straightforward but I am very confused right now.

I’d appreciate if you point out any mistakes here.

Thank you.

curves.3dm (24.9 KB)
selectobjectbylayername.gh (4.5 KB)

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5846

Latest Images

Trending Articles



Latest Images