Forum: Poser Python Scripting


Subject: Simple return value bug in poser.DialogSimple.AskMenu()

3dcheapskate opened this issue on Sep 26, 2020 ยท 7 posts


3dcheapskate posted Sun, 27 September 2020 at 4:30 AM

In that case it's probably not a bug then, just my lack of understanding of Python :)

So AskMenu() returns nothing (NoneType) if you click 'Cancel', but returns an empty/null string (StringType, "") if you click 'OK' with the AskMenu dialogue's default 'None' option, as shown below.

None.jpg

Thanks - that makes some sort of sense now.


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).