Rhinoscript GetColor error message

I am trying to create a user interface for changing a layer color by using the exact example for GetColor from RhinoPython:

import rhinoscriptsyntax as rs
color = rs.LayerColor("Default")
rgb = rs.GetColor(color)
if rgb: rs.LayerColor("Default", rgb)

but I am getting this error message (line 5 is the rgb definition statement):

Is there another way to bring up the colorpicker?

Max.

System.Drawing.Color is essentially a Windows thing and there are a few things that have been translated over to Mac, but not all. This may be one of those not yet available. Let me look a bit…

Yeah, looks like rs.GetColor is good and broken on the Mac. I’m not sure if it was working before or not, I don’t see a current bugtrack item for this, so I’ll add it.

OK, bug created: http://mcneel.myjetbrains.com/youtrack/issue/MR-1764

The problem is actually in the implementation of Rhino.UI.Dialogs.ShowColorDialog() in Mac

–Mitch

Thanks guys for reporting this. This is entirely fixable and Mitch you are correct that this is an issue with System.Drawing. I may not get this fixed for the initial release of Mac Rhino, but will definitely try.