Forum: Poser - OFFICIAL


Subject: Loop-making script

Cage opened this issue on Apr 03, 2010 · 610 posts


Cage posted Thu, 06 May 2010 at 12:29 AM

> Quote - Poser 8 and up have wxPython, which is 8,642.57 times better than TK, both for the user and for the developer. Plus, you'll have a skill you can use to build real programs, as I've written some serious apps in wxPython.

I'm interested, but that solution lacks backwards compatibility with earlier Poser versions.  I'm interested in supporting P8+, but until Poser 8 is finished (many bugs remain :sad:), I'm not interested in supporting it at the expense of earlier versions.  Primarily because I'm still using Poser 7, myself, for most things.  :sad:  :sad:

But the bug which interferes with Tkinter is actually a bug with PoserPython.  Scene.ProcessSomeEvents() no longer allows the parameter dials to have input while a Python script is running.  This breaks the only method I know for having a Python script with a GUI running while still permitting user interaction with the Poser interface.  If there are other methods, I'd like to know of them.  😕

The attached script illustrates the bug, and is what I submitted to SM when reporting the bug.  Used in a Poser version before P8, this will create a box and allow the user to move it using the parameter dials, while the script runs.  Used in Poser 8, the parameter dials will not recognize any user input and will not allow selection of the box prop, although the box can be manipulated in the 3D view using the Editing Tools.

Is there a known method of achieving results similar to those which this script can provide in P7, without relying on Scene.ProcessSomeEvents()?

Edit:  My brain kicks in and it occurs to me that WxPython could be attempted for P8+, while Tkinter is used for earlier versions.  Hmm.  :unsure:

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.