Displays a dialog box prompting the user to select one or more layers.
rhinoscriptsyntax.GetLayers (title="Select Layers", show_new_layer=False)
rhinoscript.userinterfacex.GetLayers (title="Select Layers", show_new_layer=False)
title |
Optional. String. A dialog box title. |
show_new_layer |
Optional. Boolean. Display the "New" layer button. If omitted, the button is not displayed. |
List |
The names of the selected layers if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
layers = rs.GetLayers("Select Layers")
if layers:
for layer in layers: print layer