Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
I dunno, I think the biggest "holes" are in the Poser module itself -- just a lack of access/functionality to some of the more interesting things Poser can do. For example,
Lack of direct python access to P5's material room (nodes and shaders.)
Lack of (interesting) python routines to manipulate magnets. For instance, while python can apply magnets to a character, I don't think there's any direct way to add the character's clothes to the magnets' zone as well. (If someone knows how in python, I'd be mighty grateful for the info.)
As for other problems with standard modules, I do remember Mac P5 users reporting some problems with the Tkinter installation on OSX. Anyone know if this was fixed?
duckmango, I completely agree with you, Python support should be far more extensive. Python 2.3 support wouldn't hurt either. As far as Mac troubles are concerned, I wouldn't know as I'm running on WinXP. I primarily meant the basic Python runtime in Poser. So I experimented a bit. I reinstalled Python 2.2.3 and copied the python22.dll to my Poser installation directory (first renaming the Poser version of the file). And now my Poser's Python has a thread module :)
duckmango, I haven't got something larger in mind really. I just thought a Python shell in Poser would be a nice idea to try things out interactively. So I tried to embed IPython, which wasn't very successful. So I started to program my own shell with a simple Tkinter GUI. Along the way I added a function to call the Python Windows help and struggled with the diverse spawn*, exec* functions in the os module. Since all experiments haven't worked out properly, I started to use a separate thread to start the chm file. This finally worked ok when starting outside of Poser, but then: no thread module in Poser! So this is how I discovered the missing thread module. stewer, how did you disable threads for P5? There isn't any thread module in Poser5's version of Python. Apart from that, dis/enabling threads would mean recompiling Python itself. Could you tell me more, I'm really curious. Another thing is that before I exchanged python22.dll, I had to start my script 2 times before I got the Tkinter GUI and Python was reacting queer sometimes i.e. sometimes it just ignored commands. After the exchange everything worked fine.
Latest word from CL tech support is that TkInter support for Mac under OS X is being worked on but no completion or release date.
Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.
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.
Hi all, I just discovered that there is no module "thread" in Poser's version of Python. This is quite a heavy blow, up until now I thought Poser 5 contained a full version of Python 2.2. Has anyone else discovered similar "holes" in Poser's Python? And is this a bug or is it a deliberate "pruning"? martin