Mon, Nov 25, 8:55 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: Adding Buttons?


Terry Mitchell ( ) posted Sun, 08 September 2002 at 7:36 AM · edited Fri, 22 November 2024 at 12:04 PM

What's the best way to add thir-party scripts to Poser Pro Pack so their selection buttons always appear in the Python Scripts drop down menu? (Mine always disappear after each use.)

Intel Core I7 3090K 4.5 GhZ (overclocked) 12-meg cache CPU, 32 Gig DDR3 memory, GeoForce GTX680 2gig 256 Bit PCI Express 3.0 graphic card, 3 Western Difgital 7200 rpm 1 Tb SATA Hard Drives


ockham ( ) posted Sun, 08 September 2002 at 8:55 PM

Find the script MainButtons.py which should be in Runtime:Python:PoserScripts, and edit your buttons into it. Note that the script uses Mac-style folder:file notation instead of PC-style folderfile. As long as your scripts are within the Poser directory somewhere, you should be able to follow the example of the bottom line in listing each. Save the original under a name like MainButtonTemplate.py in case you mess up! The script looks like this before adding any entries: import poser poser.DefineScriptButton(1, "", "...") poser.DefineScriptButton(2, "", "...") poser.DefineScriptButton(3, "", "...") poser.DefineScriptButton(4, "", "...") poser.DefineScriptButton(5, "", "...") poser.DefineScriptButton(6, "", "...") poser.DefineScriptButton(7, "", "...") poser.DefineScriptButton(8, "", "...") poser.DefineScriptButton(9, "", "...") poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:clearButtons.py", "Clear Buttons")

My python page
My ShareCG freebies


jt1161 ( ) posted Sun, 19 February 2006 at 10:56 AM

Is 10 the max number of buttons?


nruddock ( ) posted Sun, 19 February 2006 at 11:22 AM

"Is 10 the max number of buttons?"
Yes.

The PoserPython manual does specify that the button index ranges from 1 to 10.
It's probably a combination of coding and GUI layout limitiations.


Naylin ( ) posted Mon, 20 February 2006 at 6:36 AM

"Is 10 the max number of buttons?" "Yes." HOWEVER, you can link a button to another file with 10 more buttons and link there to 10 more etc... --Naylin

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    My Store   My Gallery
____
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
"You have the right to remain silent. Anything you say can and will be misquoted and then used against 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.