Displays the Rhino color picker dialog box allowing the user to select an RGB color value.
rhinoscriptsyntax.GetColor ( color=[0,0,0] )
rhinoscript.usetinterface.GetColor ( color=[0,0,0] )
color |
Optional. list of three values. A default RGB color value. If omitted, the default color is black, or RGB(0,0,0). |
list |
The RGB color value selected by the user if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
color = rs.LayerColor("Default")
rgb = rs.GetColor(color)
if rgb: rs.LayerColor("Default", rgb)