Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
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.
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.
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.
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.