Mon, Sep 9, 6:49 AM CDT

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 08 5:10 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: Picking coordinates


papillon68 ( ) posted Sat, 25 September 2010 at 12:28 PM · edited Sun, 21 July 2024 at 12:54 AM

I'd like to ask if picking is possible using wxPython: I would like, for example, to run a python script that return the xyz coordinate of a point in 3d space.
So for instance, if you click on the Poser ground prop, or a figure, it would return the coordinates of that point (pixel) you clicked on.
Thanks

visit my blog:  www.alessandromastronardi.com

My Rendo Store


semidieu ( ) posted Sun, 26 September 2010 at 6:38 AM

I don't thnk it's possible directly...

You can detect that an actor has been changed and you could get it's xyz space corrdinate (the 'zero' point of the actor). But you can't get the pixel directly.


nruddock ( ) posted Sun, 26 September 2010 at 12:23 PM

Poser only provides the opposite conversion (World -> Screen).

You can't do it without access to information from OpenGL, specifically the perspective transform matrix.
While it is possible to get access to the underlying OpenGL stuff by installing extra Python modules, doing OpenGL picking requires a fair amount of understanding and work (and you'll still have to write code to resolve hits into polygons/actors).


papillon68 ( ) posted Sun, 26 September 2010 at 12:55 PM

I have some experience with opengl programming (being coding flight simulators for a while, long time ago: http://www.simulationfreaks.com/), so I would know how to do that. Unfortunately, as you confirmed, poser opengl environment is not accessible. Thanks anyway to clarify that

visit my blog:  www.alessandromastronardi.com

My Rendo Store


nruddock ( ) posted Sun, 26 September 2010 at 2:08 PM

Quote - Unfortunately, as you confirmed, poser opengl environment is not accessible.

In P8 it is if you install a wrapper module and hook into the canvas via wxPython.
If it's just for your own use, then you'll either mange it or not, but if it was intended for others to use, then it probably wouldn't be worth the support effort.


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.