Forum: Poser - OFFICIAL


Subject: Vertex-level editing via Poser Python

Cage opened this issue on Mar 21, 2007 · 42 posts


Cage posted Fri, 23 March 2007 at 6:30 PM

*"If a new box is created, the callback event is generated. This slows down anything.

I did the following: Wenn the start button is pressed, callbacks are disabled. If anything is set up, callbacks are re-enabled.

Using the standard Tk-mainloop from within Poser should be avoided for scripts like this.
Better use an infinitive loop and call poser.Scene().ProcessSomeEvents() from your script. This keeps Poser living without loosing control. If your script is very busy, don't let Poser do something. If you don't, Poser needs a lot of time to check if anything is changed in the meantime, including screen-refreshs."

*I'm afraid some of your terminology is over my head.  What is an infinitve loop?  There is a function in the GUI to allow Poser to process events.  It's probably not well implemented, but it's the best I've been able to come up with, lacking any good examples.  I'll see what I can come up with, however.  If you can maybe clarify any of what you suggest, it would help....  Sorry I'm kind of slow.  I'm learning Python as I go and your ideas are new to me.

And Poser 7 has problems with it.  Dang.  Any idea what part of the process could be causing the Poser 7 issues?  Hmm.

===========================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.