Forum: Poser - OFFICIAL


Subject: adding a python script

bigdave1960 opened this issue on Mar 28, 2009 · 12 posts


Acadia posted Sat, 28 March 2009 at 10:57 AM

You can also make more SubMenus using those SubMenu files.

For example, I have a gazillion scripts by Ockham. 

Here is what my SubMenu.py script looks like.

If you save the file to your desktop and open it in Notepad, you will see that I have both versions of Wardrobe Wizard, plus I have 3 lines for Ockham, and an entry for Dimension3D.

When I open my SubMenu from the python window, I see:

Wardrobe Wizard
Wardrobe Wizard 2
Ockham Scripts
Ockham Scripts
Ockham Scripts
Dimension3D

When I click on any one of those, I am taken to yet another python window showing further scripts.  So for example if I want to access a specific script by Ockham, I will find it under one of the 3 entries I have showing for him.  When I'm done, I c an just click on "back to main button".

I have my Ockham scripts saved in the following path:

C:Program FilesCurious LabsPoser 6RuntimePythonposerScriptsOckhamOckham Scripts

I also had to create 3 .py files in this path so that I could add the scripts. I created:

OckhamMenu.py
OckhamMenu2.py
OckhamMenu3.py

I have my Dimension3D scripts saved in the following path:

C:Program FilesCurious LabsPoser 6RuntimePythonposerScriptsDimension3D

In order to add his scripts, I have the following file inside this path:

Dimension3D.py

Basically for each person who has multiple scripts, I create a folder for that person and add a .py script (essentially a renamed mainbuttons.py edited to hold the scripts I want)  in order to save the scripts in one place.

 

"It is good to see ourselves as others see us. Try as we may, we are never
able to know ourselves fully as we are, especially the evil side of us.
This we can do only if we are not angry with our critics but will take in good
heart whatever they might have to say." - Ghandi