Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
Thanks Phil and Semi for your help. Before attempting this, I decided to try something else to solve the problem I'm having.
I never explained the problem...
I was attempting to use Poser Python's Callback function and it goes absolutely bonkers on a new scene, if the current script isn't closed. I'm supposing because you initially connect the Callback to something and I used the current scene. I was going to use one of your detection tricks to Clear the Callback and restart it. In my opinion, the whole callback thing is very volatile for scripts that can be kept running (this is a dockable panel)
Found a better solution. Instead of using Poser's callback, use a wxPython Timer. I have it at an 1000 ms loop but I think that a tad slow of a check so I'm going to reduce it to 250 ms. That should be responsive enough to check the currently selected object.
So yeah, this was a serious DUH moment for me.
.
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.
Hey guys,
Is there any way for Python (or wxPython) to detect if a new scene has been started? While the script has been running?
.