Fri, Nov 29, 10:35 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: .py -> .pyc


bushi ( ) posted Sat, 24 February 2001 at 2:06 AM · edited Sat, 16 November 2024 at 3:11 PM

Has anyone figured out how to get PoserPython to create a .pyc file? The File > Run Python Script option gives .pyc files as an option but I been chasing my tail on how to create one. Yes, I do know what they are. ;-) All of the other versions of Python I've tried normally create them when the script is successfully run but not PPython.


jbrugion ( ) posted Sat, 24 February 2001 at 2:32 PM

If you have a straight up script it will not create a *.pyc file. If you have a set of modules, such as class defs, in a separate file(s) that you import it will then generate the *.pyc file. If you want to generate a *pyc file then break out most of the script functionality into a separate file and then use the import. As an example from one of my scripts: from Tkinter import * import Pmw import poser from ActorTest2 import * The ActorTest2 file which has my code in it will be compiled down to a *.pyc file. I haven't seen any real speed difference between the *.pyc and *.py files. There isn't supposed to be too much anyway. I see a bigger lag waiting for it to spin up Tkinter.


bushi ( ) posted Mon, 26 February 2001 at 12:24 AM

j - Thanks for the info! It's exactly what I needed.


Privacy Notice

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.