Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
I've tried this script, and the problem seems to be how often you ask for a Draw(). I put in an if statement to check if the values from the joystick had actually changed. If they had, I update the parameter values, then called Draw(). It works well, even with other programs running in the background. Regards, Jesse
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, Alright, I love this Python business...very easy to do lots of stuff...here's what I am doing, and the problem I am having... I am trying to make a realtime "puppet" using my joystick and poser, basically I have a loop, each time through the loop the puppet is updated based on the information from the joystick. Finally the loop calls scene.Draw() to redraw the screen. It works amazing, very fast and very smooth...only problem is, whenever the mouse is clicked (or as far as I can tell, whenever the OS tries to do something in the background) the scene stops updating....now I know that it is updating the character (from the joystick), I believe it is just not calling scene.Draw() correctly...as soon as the loop exits (click on joystick button) the screen magically updates and everything is in the place where it should be.... Any ideas on work-arounds (maybe disabling the mouse)???