View Full Version : Change backround color - viewport refresh

04 April 2008, 04:32 PM
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 ?

04 April 2008, 04:46 PM
Just evaluated your code and it works fine using Max R8. o.O

04 April 2008, 05:29 PM
ditto in r5 - so glad it changed back, too ;)

04 April 2008, 07:41 PM
Yeah sorry, I restarted max and it works well... anyway :curious:

CGTalk Moderation
04 April 2008, 07:41 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.