Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
I've been thinking about this. Python can detect a small number of "events", but shutdown of Poser itself is not listed among them. One thing that is among the listed events (in the PPP help file for Python) is closing the existing PZ3 file, which always happens along with a complete exit but also may happen within a session. Would that serve your purpose? And what sort of cleanup do you want?
My python page
My ShareCG freebies
Thanks, ockham ! Yes, thats a good hint . I'm currently working on a thingy to load poser files from arbitrary locations, or, otherway round, a Win "Send To" which sends stuff to poser. v0.1 will be released the next days. Since this works with python network communication on the local host, my problem is how to shut down the networking sockets gracefully when Poser is closed. Right now, they hang around doing nothing after Poser exit, and it needs quite a while untils the OS kicks them. Thanks again, madz
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.
Hello all !
Does anyone knows way to get a notification in a python
script when poser is about to exit (via File->exit) ?
One might have a need to do some clean-up in python
before poser (and the python interpreter) is shut down...
All hints welcome!
Thanks
madz