• Welcome to Dizzi's Support Forum.
 

News:

Welcome to my support forum for Advanced Library and PoseMagic2Pose.

Main Menu

Script: Scriptsmenu

Started by Dizzi, November 29, 2009, 10:51:23 PM

Previous topic - Next topic

Dizzi

As there's really not much magic to the script, feel free to distribute your adjusted version.

I just added the missing save path creation myself.

Netherworks

Quote from: Dizzi on April 04, 2010, 09:40:36 AM
As there's really not much magic to the script, feel free to distribute your adjusted version.

I just added the missing save path creation myself.

Awesome!  Thanks so much.

I really appreciate that you've been sharing the wxpython scripts that you've put together.  Not only have they been neat ideas, but it gives me a chance to learn some things.  I've been wanting to convert my utilities from Tkinter to something like wxpython so that it can be integrated better with poser.  There is a LOT of information out there for wxpython but sometimes you really have to dig for it and the python wiki reads like stereo instructions to me.  I learn much better from working examples that I can break and curse at. :D

I just added a menu item to the scriptsmenu so that you can right-click and edit the python script if it has a .py extension (I guess more-so for script developers/tweakers).  However, right now it is simply using "os.startfile" and would only work properly if you have associated .py with a text editor.  This would probably cause problems in general (plus I am not sure if this would work on a mac) so I may just set up a way to define a default text editor and open a script with that (using the poser file dialog to browse to a text editor and then save that path in a separate configuration file).

Netherworks

Okay, I have a download available on my site.

http://netherworks-studios.com/blog1.php/2010/04/05/scriptsmenu-panel

+ Purpose +

To replicate Poser's Scripts Menu in a floating/dockable panel and to provide some additional functions when working with python scripts.

+ Appearance +

In an attempt at a more seamless integration with Poser's existing panels, there is no docked border and background colour is set to that of other panels.  Folder color is darker with yellow text.  Script color is lighter with white text.  The .py and .pyc extensions are hidden to match the scripts menu.

+ Note +

This script is based on Dizzi's v1.1 work.  I did not include the "Show Lib's Menus" function as I feel that the panel should replicate only what is available on the Poser Scripts "Menu".  It's simply a consistancy ideal.

+ Usage +

Simply double-click to run a script or open a folder.  The plus boxes on the left side can also be used to expand or collapse folders.

A menu is available via right-click.

Copy path to the clipboard (original) - works with files and folders

Refresh Folder and Tree (original) - you can refresh the individual folders or tree if you have made changes outside of Poser.

Browse with Explorer (new) - windows users can browse script folders in Window's Explorer.  Similar functionality is implemented for mac users (untested).

Collapse All (new) - Collapses all expanded folders.

Edit Script (new) - scripts with a .py extension can be edited with your file editor of choice.  File editor is defined by using "Set Python Editor", which allows you to browse to an .exe or .app installed on your system.  The script remembers which editor you have set between poser sessions.

Comments and suggestions are always welcome!