Coloring Grasshopper groups using Dynamo Graphic Standards

While there are lots of ways to change color content of a Grasshopper definition, here is a script that will color code groups for Rhino.Inside.Revit for common identification of components in Revit: (23.2 KB)

Based on the color specification here:

Thank you to @timonielsen for the original Grasshopper script this is based on here:

And @eirannejad tweaked it a little by adding the Selected Only toggle.

Hope someone finds it useful,