Forum: Poser 11 / Poser Pro 11 OFFICIAL Technical


Subject: Python Scripts

rokket opened this issue on Dec 30, 2022 ยท 28 posts


RedPhantom posted Sun, 01 January 2023 at 12:33 PM Site Admin

To add more pallets, you need to edit the mainButtons.py file in a text editor (don't use Word). Lines 8 and 9 load 2 new pallets called custombuttons.py and custom2.py respectively. Those pallets are set up in the same format. I think I just made copies of the mainbuttons.py and edited them. You can find the mainbuttons.py in Runtime\Python\poserScripts under the folder where Poser is installed (as opposed to your content runtime).

import poser

poser.DefineScriptButton(1,  ":Runtime:Python:poserScripts:PythonPalette:geomModButtons.py", "Geom Mods")
poser.DefineScriptButton(2,  ":Runtime:Python:poserScripts:PythonPalette:utilityButtons.py", "Utility Funcs")
poser.DefineScriptButton(3,  ":Runtime:Python:poserScripts:PythonPalette:callbackButtons.py", "Sample Callbacks")
poser.DefineScriptButton(4,  ":Runtime:Python:poserScripts:PythonPalette:renderButtons.py", "Render / IO")
poser.DefineScriptButton(5,  ":Runtime:Python:poserScripts:PythonPalette:materialModButtons.py", "Material Mods")
poser.DefineScriptButton(6,  ":Runtime:Python:poserScripts:PythonPalette:printInfoButtons.py", "Print Info")
poser.DefineScriptButton(7,  ":Runtime:Python:poserScripts:PythonPalette:propButtons.py", "Prop Samples")
poser.DefineScriptButton(8,  ":Runtime:Python:poserScripts:custombuttons.py", "Custom")
poser.DefineScriptButton(9,  ":Runtime:Python:poserScripts:custom2.py", "More")
poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:clearButtons.py", "Clear Buttons")


Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10