Sat, Jan 25, 11:41 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: Using BucketSize in poser python


smiller1 ( ) posted Sat, 10 March 2007 at 5:56 PM · edited Sat, 25 January 2025 at 11:40 AM

I can't figure out how to get/set the bucket size from within a python script.

Anyone help?

Please!


smiller1 ( ) posted Sun, 11 March 2007 at 5:29 AM

OK- let me give some more background.
It's been years since I wrote any new python code, so I'm rusty at this.
I've now got Poser 7 and I can see there are now some Firefly Options Methods, but I can't figure out how to access them.

it's obviously not this simple....

import poser
print " New Bucket Size " + str( poser.BucketSize() )


or this....

import poser
scene = poser.Scene()
print " New Bucket Size " + str( scene.BucketSize() )


So how do I do it?


nruddock ( ) posted Sun, 11 March 2007 at 6:17 AM

Use ffo = poser.Scene().CurrentFireFlyOptions() to obtain a FireFlyOptionsType object.
You can then use ffo.BucketSize() and ffo.SetBucketSize(n) to get and set the BucketSize respectively.
See the section of the "PoserPython Method Manual" entitled "FireFly Options Methods" for the method names to manipulate other settings.
The values obtained from the FireFlyOptionsType object reflect what's set in the "Manual Settings".


smiller1 ( ) posted Sun, 11 March 2007 at 6:25 AM

----------------------------------------------------- import poser scene = poser.Scene() scene.CurrentRenderEngine() ffo = scene.CurrentFireFlyOptions() print "Bucket size: " + str( ffo.BucketSize() ) ----------------------------------------------------- Thank you!!!


smiller1 ( ) posted Sun, 11 March 2007 at 12:36 PM

Hmm, lemme try that again....


import poser scene = poser.Scene()
scene.CurrentRenderEngine()
ffo = scene.CurrentFireFlyOptions()
print "Bucket size: " + str( ffo.BucketSize() )


Thank you!!!


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.