Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 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
(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
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.
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.