ViewDisplayModes

Returns a list of view display modes, including those listed in the Advanced Display Modes section of Rhino's Options dialog box.

Syntax

rhinoscriptsyntax.ViewDisplayModes (return_names=True)

rhinoscript.view.ViewDisplayModes (return_names=True)

Parameters

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.

Returns

List

A list of strings identifying the display mode names or identifiers if successful.

Example

import rhinoscriptsyntax as rs

modes = rs.ViewDisplayModes(False)

for mode in modes: print mode, "=", rs.ViewDisplayModeName(mode)

Also See

ViewDisplayMode

ViewDisplayModeEx

ViewDisplayModeName