Fri, Dec 27, 1:15 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 26 8:04 pm)



Subject: Python and Other Scripts


rokket ( ) posted Mon, 15 August 2011 at 11:55 PM · edited Mon, 21 October 2024 at 12:18 PM

Someone (sorry I can't remember who to give the credit to) gave me a link to a bunch of scripts at

http://www.the.cage.page.phantom3d.net/TDMT_Match/other_scripts/various.html

and I am not a complete dummy (although if you ask certain people...) anyhow, I am baffled on how to inport and use them. I am assuming that I copy them to a text file and put them in a folder in Poser?

Please help me figure this out. I want to start learning them for later use.

Oh, by the way... my Blender experience is starting to gain momentum. I may be able to start modelling clothes in a few more months. I just have to get proficient with the hotkeys and then I'll have it...

If I had a nickle for ever time a woman told me to get lost, I could buy Manhattan.


Acadia ( ) posted Tue, 16 August 2011 at 12:15 AM

 

Ok, accessing python scripts can be a bit confusing. Ok, alot confusing becuase the default Python Window inside Poser only allows for 10 scripts and 7 spots are taken up with scripts already added to the menu by Smith Micro.  So unless you add more buttons (which is complicated but achievable), you have to access each script as you go along.

I'm using Poser 6, so I don't know if access is different later versions.

In Poser 6 to access the python menu you go to "Windows" and pick "Python" and it opens a small window which has some scripts already in it, plus 3 blank buttons where you can add 3 more scripts.

If you don't want to add more scripts to the menu, you access each script through the "File" menu. You will then have to go and search out each .py script that you want to run.

I much prefer to have all of my scripts at the ready in the python menu window so I use "sub menu" buttons to take me to deeper levels in the python window that allows me to add as many scripts as I want.  Here are the instructions on how to go about editing the mainmenu.py to add more scripts:

http://www.renderosity.com/mod/forumpro/showthread.php?message_id=2525895&ebot_calc_page#message_2525895

http://www.renderosity.com/mod/forumpro/showthread.php?thread_id=2831288

If you need more help, just post back here or in one of the other threads.

"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



rokket ( ) posted Tue, 16 August 2011 at 12:23 AM

Thank you Acadia! I will start reading and try to figure it out from there.

If I had a nickle for ever time a woman told me to get lost, I could buy Manhattan.


markschum ( ) posted Tue, 16 August 2011 at 11:29 AM

You can add scripts to the menu which is Window > python scripts, you can run them from the File menu > run python script as Acadia says. In Poser 7 and up you can open the Scripts menu . The scripts menu contains all scripts in RuntimePythonposerScriptsScriptsMenu  but it doesnt update with Poser running.

All script should be in the Python/poserscripts folder and its best to create a subfolder to keep them organised.


Rance01 ( ) posted Tue, 16 August 2011 at 1:36 PM

I only just realized, in Poser 7 at least, that if you copy a folder containing scripts into the 'C:Poser 7RuntimePythonposerscriptsScriptsMenu' folder, they appear in the Scripts menu of the program.  I've always taken the time to modify the mainButtons.py file at RuntimePythonposerscripts.  That's the menu seen using the Poser menu: Window, Python Scripts (Shift+Ctrl+O).  Because there are only 10 buttons in the script file, I created 'MORE.py' to hold 10 more menu options ...  I guess the Scripts menu is probably new to Poser 7, and I started using scripts alot in version 6 (or 5) of the software.

PhilC, Cage and Greenpots all have their own menus on my system.

Word of advice, always backup your menu files before making changes.  If you break something you will always have the orginal to begin again.

Best Wishes,
Rªnce


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.