Environment background color changes in different scenes

I was wondering if it’s possible to have different background colors when I present products.

Our products have multiple colors, in order to make a contrast, I’d like to show light color product in a darker color environment. Is there a way in Grasshopper script, with the help of ShapeDiver component to corelated the display color of product with the background color?

I know making a wall or a dome with color can have the same effect, but that always makes zoom in very slow.

would like to hear all the suggestions.

You can control the background color using the viewer API (Api v2 or v3). As long as the color of your object is explicitely stored (maybe as a parameter value or using a direct data output component), you can simply update the background color after each parameter update to contrast with the color of your object.