Forum: Poser - OFFICIAL


Subject: How to make Python buttons "stick"

Schecterman opened this issue on Oct 22, 2010 · 6 posts


Schecterman posted Fri, 22 October 2010 at 8:29 PM

I keep adding scripts in the Python window/menu/thingie whatever-you-call-it through those buttons with the "..." on them, and every time I restart Poser (Pro 2010) the ones I've added are gone.

Wouldn't be so bad if it weren't for Poser's tendency to open the last folder you used for whatever and I always have to navigate through a maze of directories to get back to the Python stuff I want to add.

So is there some way to make them stick, to make them stay there after I close Poser and reopen it?

...


JunkoH posted Fri, 22 October 2010 at 8:50 PM

The file you want to modify is Runtime/Python/poserscripts/mainbuttons.py

You can also place a script in Runtime/Python/poserscripts/ScriptsMenu/(make your own name) and they will be in a pulldown under "Scripts" menu at top



Schecterman posted Fri, 22 October 2010 at 9:20 PM

Okay thank you, I'll check that out. :-)

...


RobynsVeil posted Sat, 23 October 2010 at 3:48 AM

Since those buttons are typically pretty well populated (usually with only two spaces left), I went and created a sub-group, a "PoserSet.py" button group which included all of these buttons. Did that by copying "MainButtons.py" to "PoserSet.py".
Then, in "MainButtons.py", I call the "PoserSet.py" this way:

poser.DefineScriptButton(3, ":Runtime:Python:poserScripts:PoserSet.py", "PP2010 Stuff")

Gives you a few more options that way...

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


Netherworks posted Sat, 23 October 2010 at 5:12 AM

Quote - Wouldn't be so bad if it weren't for Poser's tendency to open the last folder you used for whatever and I always have to navigate through a maze of directories to get back to the Python stuff I want to add.

Yes, Poser can be bad with that as a lot of other applications.  If you are on windows, there's a pretty cool freeware named Filebox extender that you can use to have your favorite folders readily availble in just about any application open/save dialog: http://www.hyperionics.com/files/index.asp

.


Schecterman posted Sat, 23 October 2010 at 9:35 AM

Thanks again for the information guys. :-)

And that filebox extender is very cool so I appreciate that too!

...