Rhino-Render Background color with rhinosyntax/python/c#

Hi guys,

I have been trying to set the Rhino-Render Background Color using Grasshopper and python.
I tried:

rs.RenderColor( render_background_color, (187,187,187) )

So far its been unsuccessful. Do you have an idea if that works?


Try setting the script context to the Rhino document:


Magic, that helped! Thank you very much!

1 Like

No worries. Also, note that you probably don’t need the rs.EnableRedraw() calls in your case. Since you’re not iteratively e.g. adding geometry or fiddling with layers.

1 Like