Forum: Poser Python Scripting


Subject: Main Button Poser Script

Koda opened this issue on Mar 14, 2002 ยท 5 posts


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

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