Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
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]
have a look at your scale factor again. The only one I remember for Export is to do with scaling in BVH exports.
I use Lightwave so I load the item and scale it up if I want to model at real world scales. Then export it scaled smaller. In 3dsmax the importer allows you to scale. I dont know blender.
Yea, I did not see a Import Scale option in Blender either (they have a Clamp Scale option, but it does not seem to change anything related to the scale of the OBJ being imported?), so I seemed to be stuck either way, doing it manually. Was just trying to get it automated. It's not that big of a deal, I guess
Thanks for the replies
(whoops double post)
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
I was trying to put together a Python script to export the scene as an OBJ and scale it up, so that it imports into Blender in a more blenderish size.
This is my cutup of the imp/exp script in Render control. (Poser 9)
There is a code called: kExOptCodeSCALEFACTOR - Scale exported scene by this amount.
I have modified it to 1, 10, and 100 with no difference in the exported size?
Any thoughts?