Wed, Nov 27, 12:09 PM 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: Simple Python Editing....


evilded777 ( ) posted Sun, 16 March 2003 at 8:17 AM · edited Sun, 28 July 2024 at 1:00 AM

I just want to permanently map a button on my main buttons script and I always get a null character error, even though my line looks exactly like every other line in the script. HELP!! This should be easy, but I'm boning it up somehow. e.d.


ockham ( ) posted Sun, 16 March 2003 at 10:48 AM

That null character error has something to do with Python's insistence on compiling everything into a PYC file. I haven't seen it on the MainButtons, but I have seen it on more complicated files. Try using a different editor for MainButtons.py, and be sure the editor is set for pure ASCII (unformatted) text. Notepad is good for that purpose. If you're going to do a significant amount of Python writing, you should get a "programmer's editor" like Kedit or Codewright.

My python page
My ShareCG freebies


evilded777 ( ) posted Sun, 16 March 2003 at 2:21 PM

thanks again Ock, you're the best. e.d.


smokingbevel ( ) posted Thu, 10 April 2003 at 5:14 AM

(perhaps we may assume that this is painfully obvious)
When obtaining the full implementation from the main python resource location, it may be possible to obtain and/or utilize the IDLE tool, which is a fairly useful program designed with python source editing in mind.

With installation ver 2.2.2, which is not necessarily known to be fully supported by the most recent poser implementation, an included IDLE might be found in the installation tools subdirectory.

Note:
*response applied due to personal dislike of notepad.exe
*experience limited to span of two days experimentation of python

-smokingbevel


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.