Is there a way to change viewport background colours on a per viewport basis? Essentially I have 4 viewports looking through the same perspective camera, and I want them each to have their own unique background colour. I know I can use the following to change the background colour globally, but I can’t seem to find a way to do it per viewport:
cmds.displayRGBColor( 'background', r, g, b )
I tried turning to maya's api, but I only see a way of querying the backgroundColour of a viewport, not of setting it:
import maya.OpenMayaUI as omui
activeView = omui.M3dView.active3dView()
activeView.backgroundColor()
Any ideas?