Returns the identifier of a display mode given a display mode's name.
rhinoscriptsyntax.ViewDisplayModeId (name)
rhinoscript.view.ViewDisplayModeId (name)
name |
Required. String. The name of the display mode obtained from the ViewDisplayModes method. |
Guid |
The id of the display mode if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
modes = rs.ViewDisplayModes(True)
for mode in modes: print mode,"=",rs.ViewDisplayModeId(mode)