Forum: Poser - OFFICIAL


Subject: New Reality (lux render) Plugin over at Daz...time for Poser Plugin Update?

Ridley5 opened this issue on Jul 26, 2010 · 1724 posts


adp001 posted Wed, 11 August 2010 at 2:55 PM

I optimized my standard "Poser-Proxy". 

Once started the script is able to control Poser-Python. If actors are added (even while loading a whole scene) each new actor is added to a global dictionary. And removed if required.

Additionally there is a (replaceable) scene.Idle() function. This function is called if Poser has nothing to do.

Standard event handling is also catched and can be controlled. No problem to have another script running. If a running script calls "scene.ClearEvents()" for the running scripts everything behaves as normal. My script is still running and receives events :)

The trick is done by overwriting "poser". Even:

del poser
import poser

returns the overwritten class (my script is simply untouched).

poser.Scene() returns another overwritten object. Both -poser and poser.Scene()- have the same functionality as normal. But both of them are standard Python objects now (extendable). A reference to the original (poser/poser.Scene()) is stored in the new object.

Maybe this is usable in some way to have a tight binding between Lux and Poser (geometries/materials/camera/lights).