Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
Doing some analysis with the integradted IDLE of PoserPro 2010 i found out how to modifiy it,
so it doesnt carsh poser anymore.
The problem that crashes poser has to do with the subprocess for the debugger window.
Theres a lot of code that hast to do with the subprocess and i dont wanna step
in the the details deeper.
to fix this you have to make small change in the file pyshell.py
(if you need a good code editor, try Notepad++, it supports python code
you will find it easyly via google)
To Fix it open
'Your Poser8 / PoserPro2010 Installation"
runtimepythonlibidlelibpyshell.py
Line 1272 : use_subprocess = True
Replace True to False and save the file.
To Try out open
'Your Poser8 / PoserPro2010 Installation"
runtimepythonposerscriptsmainbuttons.py
and change for example line 9 to the following
poser.DefineScriptButton(7, ":Runtime:Python:Lib:idlelib:idle.py", "IDLE 1.1.2")
you can then start idle via the Poser Python Scripts Buttons.
Bcause we use IDLE with the No_Subprocess options now
the debugger doesnt follow automticly the codelines if you step or trace through the code.
if you want that feature, you should use the older version (IDLE 0.8 out of the Python 2.3.3 distribution)
greetings
xuu4u
Is there any documentation on how to use the debug features of IDLE? Or is it all about setting 'print' statements?
Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2
Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand]
I just tested this on PoserPro2014, and copying the C:/Python27/Lib/idlelib folder into C:/Program Files/Smith Micro/Poser Pro 2014/Runtime/Python/Tools and making the use_subprocess change works! So thank you!
Unfortunately I could debug a PoserPython Addon, since the are initiated from within Poser rather then the IDLE editor.
Paul
Creator of PoserPhysics
Creator
of OctaneRender
for Poser
Blog
Facebook
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.
Content Advisory! This message contains nudity
greetings
xuu4u