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

Need help for creating a simple checklist box

$
0
0

Hello
import rhinoscriptsyntax as rs
layers = rs.LayerNames()
if layers:
items = [(layer, rs.IsLayerOn(layer)) for layer in layers]
results = rs.CheckListBox(items, “Turn layers on/off”, “Layers”)
if results:
for layer, state in results: rs.LayerVisible(layer, state)
How can i change “layers” with my own desired fields and how can i store the checked items in my file?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles