Forum: Poser - OFFICIAL


Subject: Posing was never so easy

Dimension3D opened this issue on Dec 13, 2005 ยท 31 posts


Dimension3D posted Mon, 02 January 2006 at 6:56 PM

OK, I should have included the code.

In ...RuntimePythonposerScripts is a file called mainButtons.py. Open it in a text editor, and you get something like this:

import poser

poser.DefineScriptButton(1,  ":Runtime:Python:PoserScripts:script.py", "Label")
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, "", "...")

For each button, you can name a script and a label. In this example, the first button has the script script.py and the label Label.

To create a submenu, fill in other scripts and labels and save it as submenuButtons.py (or whatever you like) in the ...RuntimePythonposerScripts folder. Use the following to replace the final line:

poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:mainButtons.py", ">> Main Menu")

In mainButtons.py, you must add a call to the sub menu. Replace the final line by:

poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:submenuButtons.py", ">> Sub Menu")

Now, You can switch from the main menu to the sub menu and back with the last button of the menus. Of cource, you can create as many submenus you like, link them from any button in any menu script you like, and use any label you like.

I hope this helps.


Dimension 3D - Poser Tools, Poser Props and Morphs, Cinema 4D Plugins, and more

Renderosity Store / D3D Web Site