Thoughts and tutorials on programming

Tuesday, December 05, 2006

how to get blender to not choke when you check for a variable that doesn't exist

try:
print GameLogic.bbc == ""
except AttributeError:
print "bad!"
print "done"

No comments:

Contributors

Followers