Forum: Poser Python Scripting


Subject: "NameError: name 'False' is not defined" - I'm definitely missing something obvi

3dcheapskate opened this issue on Feb 29, 2012 · 4 posts


3dcheapskate posted Wed, 29 February 2012 at 7:16 AM

I'm a very rusty C programmer, and I've just completed my first ever Python script (cheering and applause all round).

I decided to tidy the script up a bit (hisses of indrawn breath and mumblings of "if it ain't broke don't fix it!"), and I've run into some really basic issues that highlight my very limited grasp of the subtleties of Python...

Luckily we had a power cut while I was originally typing this, and in the meantime I found the answer to one of my stupid questions.

But luckily I still have another stupid question in reserve:

I thought that True and False were built-in? (http://docs.python.org/library/intro.html and then hit 'next', then 'bool()').

So why do I get NameError: name 'False' is not defined when I try to use False?


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.

*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).