Forum: Poser Python Scripting


Subject: scene.Draw(), mouse and loops

georgevicbell opened this issue on Aug 02, 2001 ยท 6 posts


georgevicbell posted Thu, 02 August 2001 at 11:45 AM

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)???