Mon, Dec 23, 7:04 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: scene.Draw(), mouse and loops


georgevicbell ( ) posted Thu, 02 August 2001 at 11:45 AM · edited Tue, 26 November 2024 at 6:03 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)???


jbrugion ( ) posted Thu, 02 August 2001 at 6:36 PM

Can you post the script? Did you try using scene.DrawAll() ?


georgevicbell ( ) posted Thu, 02 August 2001 at 8:52 PM

file_196956.JPG

There's the script, just need to d/l the support files for the joystick at: http://www3.telus.net/futility/futility/docs/pysdl/index.html


JBSpence ( ) posted Wed, 10 October 2001 at 4:00 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


Director ( ) posted Mon, 22 October 2001 at 2:49 PM

Wow this morning I was just thinking about this very same project that was mentioned a while ago.


GWeb ( ) posted Tue, 04 January 2005 at 4:38 AM

Can someone please post a working PY script?


Privacy Notice

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.