Wed, Dec 11, 5:50 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 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: How to change the origin of a spawed obj in python?


wimvdb ( ) posted Sun, 28 June 2015 at 7:57 AM · edited Sat, 02 November 2024 at 6:43 AM

I am trying change the origin of an object i spawn in python (CreatePropFromGeom())

The origin is set to the center of the object where the original has its origin set at the bottom and I need to change it dynamically.

If I don't I get an offset of half its vertical size and the size is a variable.

I thought I could use SetOrgin() to the new prop with as parameters Origin(),X(), Origin().Y(),Origin().Z() of the original actor. But X(),Y(),Z() are not accepted. Even if so, I do not know if this will work to achieve what I want.

Is there a way to do this?


wimvdb ( ) posted Sun, 28 June 2015 at 11:34 AM

I found a way around it

I calculate the offset by querying WorldVertex() of the original and subtracting the Y coordinate (YTRANS) from the original. Now I have an offset which I can use to correctly position the new prop


Kazam561 ( ) posted Wed, 05 August 2015 at 2:58 PM

Thank you for posting this... am hoping to learn python for poser....

The dust settled, thinking "what a fine home, at least for now" not realizing that doom would soon be coming in the form of a vacuum cleaner.


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.