Forum: Poser Python Scripting


Subject: A multithreading in Poser Python.

JTrout opened this issue on Nov 02, 2011 · 9 posts


bagginsbill posted Thu, 03 November 2011 at 9:23 AM

You are correct - you could use wx event handling. The reason I tend not to use such things is they have a lot of bookkeeping. You have to:

Get an unique event ID

Create a class to represent the event

Bind a listener callback for the event.

...

Remember to later unbind a listener callback for the event.

Furthermore, the whole thing goes through one queue, so if you have several independent activities, they all funnel through the main event handler and you have to sort out who is doing what to whom. I prefer a dedicated queue for each group of master/slave components. But this is a simple matter either way.

I am not aware of a stub poser module.

 


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)