C# Script + Color - Bug?

Setting the type of an input parameter of a C# component to Color throws. It can be solved by adding “using System.Drawing” in the component. I understand what is happening, but from a user point of view I find it weird that selecting Color doesn’t automatically add this namespace, as it is supposed to be a type supported by the script component. I assume this is a bug ?

color_bug.gh (4.3 KB)

Yeah that’s a bug. The default namespaces were drastically reduced when I added the ability to add your own, and I forgot that System.Drawing was needed in this case.

1 Like

Logged under RH-53920.

1 Like