Mon, Nov 25, 6:59 PM 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 Sep 18 2:50 am)

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: Possibly OT Math Question


jwhitham ( ) posted Sun, 10 April 2005 at 11:46 AM · edited Tue, 30 July 2024 at 5:32 PM

Hi all,

sorry if this is OT - I'm trying to work with Vue 5i Python, there is no specific
forum for that, and this place seems about as close as I can find anywhere to a
3D Graphics specific Python forum - so here goes:

While Vue Python returns an object's current rotations and scaling in easily understood
x,y,z tuples, translation information seems only to be available in the form of
a 3 x 3 transformation matrix. I'm assuming this data would be accessed like e.g.
first row is [0][0],[0][1],[0][2].

Whilst I remember doing matrices at school, that was 40+ years ago! So if some kind
person could either, explain how to extract the translation information or, point
me to a (preferably web based) 'Dummies Guide to Matrices', I would be very grateful.

John


nruddock ( ) posted Sun, 10 April 2005 at 12:15 PM

Attached Link: http://www.flipcode.com/documents/matrfaq.html

See attached link.

One thing you need to watch out for is that some software will interchange the rows and columns.
This can be got around by interchanging the indexes when necessary.
Best to determine which way what your using stores the values, before doing anything else. This is mentioned in the FAQ, but it's the biggest source of pain and frustration.


jwhitham ( ) posted Sun, 10 April 2005 at 12:52 PM

nruddock,

thank you, excellent resource, bookmarked.

Unfortunately printing the available tranformation matrix to the console, at various object locations and rotations, it would appear to be a rotation matrix.

E-on inform me that they will soon update Vue Python to expose current size/position information in a GetBoundingBox() function. I guess until that happens the only way to get a current location is to set initial (frame[0]) position in code, then track it from there.

John


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.