Good Morning,
Please can someone help me how I can devin by Script:
Select everything that is inside a specific layer, indicating only the layer name, without having to click on the screen?
Grateful,
Good Morning,
Please can someone help me how I can devin by Script:
Select everything that is inside a specific layer, indicating only the layer name, without having to click on the screen?
Grateful,
Does the command _sellayer works for you? You can run it in a macro.
Use -_sellayer to suppress any dialog box.
For Python rhinoscriptsyntax it would be something like
rs.ObjectsByLayer(layer_name, select=True)
Confirming that commands will be automated by script…
What kind of script? As Helvetosaur wrote, these would work for rhinoscriptsyntax for your layers:
rs.ObjectsByLayer(“0”, select=True)
rs.ObjectsByLayer(“xx”, select=True)
This would work for RhinoScript:
Call Main()
Sub Main()
Rhino.ObjectsByLayer “xx”, True
End Sub
Good Morning,
As you instructed, it worked perfectly.
Thank you very much.
This way:
!
-_sellayer
xx
enter
move
0,0,0
@0,0,300
enter
enter
cancel
-_sellayer
xxx
enter
move
0,0,0
@0,0,150
enter
enter
cancel
-_sellayer
xxxx
enter
move
0,0,0
@-150,0,0
enter
enter
cancel
!