Forum: Poser Python Scripting


Subject: Which Python versions are compatible with Poser?

maur_2005 opened this issue on Dec 28, 2019 ยท 11 posts


adp001 posted Wed, 29 January 2020 at 3:28 PM

an0malaus posted at 10:10PM Wed, 29 January 2020 - #4378272

@adp001 do VSC and PyCharm actually make use of an import poser statement and allow you to syntax check code and provide command completions for Poser methods?

Both: No syntax checking for Poser. But both do remember earlier written statements. So you have to type it mostly once.

VSC needs less resources, but PyCharm is overwelming complete. For small scripts VSC is fine. But I do most of my work with PyCharm, because he handles hundreds of referenced files as it where nothing. Change a class/function name or change the signature? No problem. PyCharm handles it even in monster-projects without any mistake (and ASKS before something is overwritten or changed!).

The Python IDE called IDLE that's bundled with macOS python 2.7 doesn't have a clue where to import poser from. Would adding the location of the python framework within Poser give any help to that?

Lib "poser" and "poser.Scene()" are hardcoded into Poser. So there is no reference. Could be a nice project :)

Maybe the Python console can help. If I remember right, the source code is in Poser Python's folders somewhere.