f=True

print (not f)


On Mon, Apr 6, 2009 at 3:38 PM, sberger <[email protected]> wrote:

>
> Hi, I am trying to reverse a boolean value.  I use this a lot in mel
> in UI creation to set the value to the reverse of another control.
> For example, in mel this works fine:
> $a = true;
> print (!$a);
>
> How can I do this in python?  I'm sure the solution is simple but for
> some reason i can't figure this one out
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to