Returns a list of view display modes, including those listed in the Advanced Display Modes section of Rhino's Options dialog box.
rhinoscriptsyntax.ViewDisplayModes (return_names=True)
rhinoscript.view.ViewDisplayModes (return_names=True)
return_names |
Optional. Boolean. If True (default), then the names of the display modes are returned. If False, then the identifiers of the display modes are returned. |
List |
A list of strings identifying the display mode names or identifiers if successful. |
import rhinoscriptsyntax as rs
modes = rs.ViewDisplayModes(False)
for mode in modes: print mode, "=", rs.ViewDisplayModeName(mode)