'foo' is 'foo'
True
'foo' == 'foo'
True
'foo' is 'foo2'[:-1]
False
'foo' == 'foo2'[:-1]
True
'foo' is 'Foo'.lower()
False
'foo' == 'Foo'.lower()
True
0 == 0.0
True
0 is 0.0
False
0 is False
False
0 == False
True
not 0
True
Thanks to Joe Hornsby for providing these excellent examples.
Monday 22 April 2024
Python3 comparison operators
Thursday 18 April 2024
Free, Opensource Animation Picker - Dreamwall
So, "it ain't 2005 anymore", and quite rightly so.
Why spend time creating a bespoke tool, if there's something out there already that's free, great, and gets the job done?
Dreamwall Anim Picker is a free and intuitive tool that allows the construction of an animation picker for rigs within Maya. It's really good, and I think it will save you a lot of time, check it out here:
https://github.com/DreamWall-Animation/dwpicker
Thursday 28 March 2024
Can't undo in Maya
The Issue:
// Error: line 1: The undo queue is turned off.
:(
The Fix:
In script editor, on a python tab, run:
cmds.undoInfo(state=True)
:)
Thursday 7 March 2024
Cool Maya Time Slider Preference!
I discovered a new time slider preference today that blew my mind slightly;
'Snap to whole frames'.
When you turn this off, as you scrub through the time slider you are able to see how your frames interpolate from one, to the other. Particularly useful if you're trying to debug euler/gimbal issues!
Friday 16 February 2024
Prune weights not working
The Issue:
Hey! My prune weights aren't working! :(
The Fix:
Yeah? Have you tried unlocking your weights?