Thu, Nov 14, 2:56 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 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: Main Button Poser Script


Koda ( ) posted Thu, 14 March 2002 at 4:33 PM · edited Wed, 31 July 2024 at 6:57 PM

Hi I just tried to add more buttons to the mainbuton python script and when I try to run it i get an error that it is limited to 10 buttons is there any way to change this Thanks keith koda@cts.com


Impudicus Rex ( ) posted Thu, 14 March 2002 at 8:06 PM

I tried that as well. Must be an internal thingy. How about just adding a 'More' button that loads a differnt set onto the 9 availible. You should keep one button as a 'Back' button.


ronstuff ( ) posted Wed, 10 April 2002 at 12:36 PM

Yes, there is a 10 button limit to each "page set", but you can have as many pages as you want. I have created several index pages (index 1, index 2 etc) and on the bottom of each is a button to return to the "master index" (starting) page. Then I have sub-pages categorized by type - for example I have a "lighting" page with all my favorite lighting scripts in one place and a separate page for MAT pose scripts etc.


Koda ( ) posted Wed, 10 April 2002 at 1:46 PM

Ron can you post how you created the addtional pages Thanks Keith


ronstuff ( ) posted Thu, 11 April 2002 at 2:12 AM

file_357.jpg

Sure - it's really easy: Although you can change buttons within the Python interface in Poser, you cannot create a new menu page there. To create a new menu page you must create a new text document (with a .py extension rather than a .txt extension) - and that is simple: Browse to your Poser4RuntimePythonPoserScripts folder. There you will see some python scripts (.py extensions) among which are the button scripts - each "page" has a separate script (file) and each script can define 10 buttons. The main index page (starting menu) is called mainButtons.py. To create a new menu page just copy one of the existing menu pages (to use as a template) and give the copy a new name like index2.py. For the time being, it will just be an identical set of buttons to those on the page you copied, but that's OK. You won't be able to see the page in Poser though until you define a button on one of the other pages to call it. You can do this from within Poser or in a text editor. In fact if you want to redefine the buttons, now that you have a new page and given it a name, you can complete the whole process from within Poser. If you are comfortable using a text editor, you can edit the script by hand. See the picture above. Open the mainButtons.py in a text editor and if you have an available blank line follow the syntax that is used with the other lines and enter the information to point to your new index2.py script. Also remember to put a button on your index2 page that takes you back to mainButtons.py! Save the file. You are done. Go into Poser and re-arrange your buttons on the new pages to suit yourself. Hope this helps. Ron


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.