Forum: Poser Python Scripting


Subject: OBJ Export Script Scaling

PickledPapaya opened this issue on Sep 25, 2012 · 8 posts


RobynsVeil posted Tue, 25 September 2012 at 9:51 PM

Don't know if this has anything to do with anything but those values after the options appear to correspond to constants stored in some Poser Dictionary. Not sure if I'm reading it right...

"The PoserPython options dictionary now includes enumerations of import and export options.  These options correspond to UI option strings present in dialog boxes when importing/exporting files from within Poser using the normal interface.  For users who need access to the strings as they appear in the dialog boxes, you can query the strings by passing the enumeration constant into the ImportOptionString() and ExportOptionString() methods (discussed below).
Codes such as poser.kExOptCodeMULTIFRAME are pre-defined constants with unique identifying values.  For instance:

poser.kImOptCodeCENTERED = 0
poser.kImOptCodePLACEONFLOOR = 1
poser.kImOptCodePERCENTFIGSIZE = 2
poser.kImOptCodeOFFSETX = 3
poser.kImOptCodeOFFSETY = 4

The values 0 to 4 do not represent the values or choices the options are set to, but rather, they are simply codes uniquely identifying each option.  It is unlikely that you will ever need to know or set them.  A more typical use of import/export option enumeration values is illustrated in the following line of code:

options[poser.kExOptCodeFIRSTFRAME] = 2

The above example sets the value of the FirstFrame option to 2.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks