Displays a list of items in a combo-style list box dialog.
rhinoscriptsyntax.ComboListBox ( items, message=None, title=None)
rhinoscript.userinterface.ComboListBox ( items, message=None, title=None)
items |
Required. list. A list of strings. |
message |
Optional. String. A prompt or message. |
title |
Optional. String. A dialog box title. |
String |
The selected item if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
layers = rs.LayerNames()
if layers:
layer = rs.ComboListBox(layers, "Select current layer")
if layer: rs.CurrentLayer(layer)