Fri, Nov 29, 7:38 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: Drop to Floor


Ralf61 ( ) posted Fri, 20 January 2006 at 11:15 AM · edited Fri, 29 November 2024 at 5:49 PM

file_320007.png

Hello, I'm trying to drop a figur to the floor - and get really strange results. Heres what I do:

scene = poser.Scene()
scene.SelectFigure(scene.Figures()[0])
actor = scene.CurrentFigure().Actor('Body')
actor = scene.CurrentActor()
scene.DrawAll()
actor.DropToFloor()

See above what the result is.

Can anybody help me?


PhilC ( ) posted Fri, 20 January 2006 at 11:39 AM

It looks like you had the chest selected and the script dropped the chest to the floor.Try:-

scene= poser.Scene()
fig = sceneCurrentFigure()
fig.DropToFloor()

philc_agatha_white_on_black.jpg


Ralf61 ( ) posted Fri, 20 January 2006 at 1:00 PM

It can be so easy ;-) I thought I have to select the Body ... Anyway: Now it works. Thank you so much ...


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.