Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
Can you list the exact error message? Here's some pure wild guesswork: As far as I can tell, Python itself and the available functions within Poser, seem to be about the same as before. I don't see any new or altered functions relating to lights. But P5 clearly handles lighting in some new ways internally. I wonder if Bos was checking for certain ranges of values, and P5 gives different ranges or wider limits when Python asks the value of some light parameters?
My python page
My ShareCG freebies
Poser 5 is using Python 2.2, where Poser 4 Pro is using Python 1.5.2. These two Python versions are source compatible, but not binary compatible, which means that scripts for Poser 4 Pro that are .py files (text files) are compatible with Poser 5, where scripts in binary formats like .pyc and .pyd need to be recompiled from the source code to run with Poser 5. The APIs of Poser Pro Pack and Poser 5 are the same, but the Poser 5 implementation includes improvements and bugfixes.
Well, that explains it. Many of the Environmental deluxe scripts are "pyc". I know nothing about "compiling from tge source code", so I hope PC Bos is paying attention and will modify the package. Anyone have a contact source for him that I can use?
Intel Core I7 3090K 4.5 GhZ (overclocked) 12-meg cache CPU, 32 Gig DDR3 memory, GeoForce GTX680 2gig 256 Bit PCI Express 3.0 graphic card, 3 Western Difgital 7200 rpm 1 Tb SATA Hard Drives
That's a valuable fact. I didn't realize the binaries were incompatible. Probably I didn't see it happen because my development directory is always in .py form, so everything ran identically in both versions. When I release a script in .pyc form, I'll be sure to run it in both versions and send the .pyc files separately!
My python page
My ShareCG freebies
Environmental Deluxe works for me in P4, but only some of its scripts (all of thge "pyc" ones) don't work for me in P5. Does anyone know how to contact PC Bos about this?
Intel Core I7 3090K 4.5 GhZ (overclocked) 12-meg cache CPU, 32 Gig DDR3 memory, GeoForce GTX680 2gig 256 Bit PCI Express 3.0 graphic card, 3 Western Difgital 7200 rpm 1 Tb SATA Hard Drives
I'm downloading Python 2.2.2 at the moment, ready to get to learning it. From what I gather of this thread, a question arises: Are scripts I write in 2.2.2 backwards compatable with 1.5.2? I know, maybe need different compiling, but OTHER than that? Also, what would be the best set of downloads to get started to learn Python scripting that is P4-5 specific? Thanks!
Adam
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.
Is anyone encountering problems with installing and using in P5 Python Scripts that worked in P4? I ask because I have run into problems trying to use PC Bos' "Environmental Deluxe" radiosity script package (sold by DAZ) in P5. Most of the scripts just generate an error message in P5 (but never did in P4).
Intel Core I7 3090K 4.5 GhZ (overclocked) 12-meg cache CPU, 32 Gig DDR3 memory, GeoForce GTX680 2gig 256 Bit PCI Express 3.0 graphic card, 3 Western Difgital 7200 rpm 1 Tb SATA Hard Drives