You can use the mel module to evaluate that warning command in MEL.
import maya.mel as mel
mel.eval( 'warning "Hey There!"' )
On Dec 2, 4:25 am, rambelly <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> How do I do the purple warning as in mel:
>
> warning("my warning message")
>
> in python - without quiting my script?
>
> At the moment I have:
>
> raise Warning("my warning message")
>
> But this produces a red error (i think because 'raise' is used).
>
> Thanks,
> rambelly
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---