Notifications
Clear all

[Closed] Change backround color – viewport refresh

Hi all!

I want a quick macro to change viewport background color to black
then make an animation preview
then turn viewport background to middle grey

But viewport color is not refresh before (neither after) preview !
Every fragments of the following script work, but the macro doesn’t change bg color


SetUIColor 41 [0,0,0]
colorMan.repaintUI #repaintAll

max preview

SetUIColor 41 [0.5,0.5,0.5]
colorMan.repaintUI #repaintAll

Any idea ?

3 Replies

Just evaluated your code and it works fine using Max R8. o.O

ditto in r5 – so glad it changed back, too

Yeah sorry, I restarted max and it works well… anyway :curious: