Hi there,
I found a strange thing with maya 2009’s confirmDialog.
I’m making it red or green depending on the outcome of some validation tests.
#snip
maya.cmds.confirmDialog( title=‘Problems with the scene.’, message=‘This scene has problems that may crash the build.’, button=[‘OK’], backgroundColor=[0.9, 0.2, 0.3] )
else:
maya.cmds.confirmDialog( title='Confirm', message='Passed validation', button=['OK'], backgroundColor=[0.6, 0.8, 0.4])
#snip
The odd thing is the first time the dialog pops up, say it’s red because the validations failed, it looks right. If the artist fixes the scene and runs the tests again, it should come up green.
What happens though, is the dialog pops up with green buttons on a red background.
Has anybody else found this problem and what did you do?
For the time being i’ll make a dialog another way.
Cheers
Jon