Returns or modifies an application interface item's color.
rhinoscriptsyntax.AppearanceColor (item, color=None)
rhinoscript.application.AppearanceColor (item, color=None)
item |
Required. Number. Item number to either query or modify. The available items are as follows:
|
||||||||||||||||||||||||||||||
color |
Optional. The new color value. If omitted, the current item color is returned. |
Number |
If a color is not specified, the current item color if successful. |
Number |
If a color is specified, the previous item color if successful. |
import rhinoscriptsyntax as rs
oldColor = rs.AppearanceColor(0)
newColor = rs.GetColor(oldColor)
if newColor is not None:
rs.AppearanceColor(0, newColor)
rs.Redraw()