Thu, Feb 27, 8:47 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: 2025 Feb 05 6:41 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: Tabs in scripts


Mason ( ) posted Mon, 19 March 2001 at 3:39 PM · edited Fri, 02 August 2024 at 4:40 AM

Has anyone else noticed that the PPP python interpreter doesn't like tabs in the script files? I've been having problems with this though their example scripts have tabs.


bushi ( ) posted Mon, 19 March 2001 at 5:17 PM

Hmmm ... I haven't seen that problem. I use the editor in PythonWin to write my scripts and it uses tabs. PoserPython hasn't hiccupped once about them. The only problem I've seen with tabs is with trying to post scripts here as text. The software here as a nasty habit of stripping them out which, of course, ruins the necessary indenting.


jbrugion ( ) posted Mon, 19 March 2001 at 7:03 PM

Depends on size of tabs. If you're using a editor thats not set up for Python it may be using the wrong number of spaces per tab. I believe that Python wants eight spaces per tab or something like that. Check www.python.org and then under documentation. Under the language reference guide, if my memory is correct, it gives the spec for tabs, spaces and other whitespace with respect to indenting.


Mason ( ) posted Tue, 20 March 2001 at 2:44 AM

Actually I have my Codewrite set to 3 spaces per tab and that works fine. If its a character 0x09 in the file it didn't work for some reason. Thanks


Anthony Appleyard ( ) posted Wed, 21 March 2001 at 7:46 AM

If you are quoting text in one of these messages, and you want to preserve leading etc spaces in it, put [pre] before it and [/pre] after it, but with angle brackets instead of square brackets.


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.