Forum: Poser Python Scripting


Subject: For Ockham

numanoid opened this issue on Feb 24, 2004 ยท 9 posts


numanoid posted Tue, 24 February 2004 at 8:16 PM

First test, here are the results. Also trying to think of how to organise categories. Pity it won't let you do it horizontally, then you could keep it neatly tucked out of the way in the top right corner, which is unused space.

numanoid posted Tue, 24 February 2004 at 8:18 PM

And if the nice folk at CLabs could find some really hot programmer, and release a SR5, we could have something like this. I love to dream. Note the last button. Lol.

numanoid posted Tue, 24 February 2004 at 8:59 PM

Been testing some more. It will also need a delete script button, otherwise you would have to manually edit to remove a script. Also figured out that if all my scripts have the same length names it looks a lot neater, lol. How does the order in which it adds scripts work? Random? Not alphabetical, so how does it decide which script goes where? Back to testing.


ockham posted Wed, 25 February 2004 at 10:14 AM

Still working on it. There is a delete action: just right-click. I'm rigging up a way to move buttons into chosen columns, so as to form topic groups. Don't hold your breath for Poser 6. A menu like that would be easy to program in C, but Python is clearly not anywhere near their priority list. Actually, the "make art" button will probably happen before a good Python menu!

My python page
My ShareCG freebies


numanoid posted Wed, 25 February 2004 at 7:17 PM

The "make art" button is easy. Even I can program it. Render a pic of a NVIATWAS, and make a python script that loads that picture as the background image, then all the user has to do is render and they have art, lol. They will all have exactly the same art, but it will solve the hassle of taking all that time to dress and pose the figures to produce identical art.


numanoid posted Wed, 25 February 2004 at 7:20 PM

Although I must admit that your NVIATWAS was really original. Took me a while to catch the joke.


ockham posted Wed, 25 February 2004 at 10:47 PM

On the "Make Art" script: Go for it! Naked Vicky in a Temple with a Stapes was an inside joke -- in two ways. I'm glad somebody got it! The main purpose was to motivate myself at a time when I needed to get my ass in gear on the Hearing Anatomy stuff. Luckily it worked.

My python page
My ShareCG freebies


numanoid posted Mon, 01 March 2004 at 11:34 PM

OK, been thinking. If the first column loaded the button file, and the second column loaded the contents of the button file, you could have 100 scripts. You add new python scripts to the second column, and the python writes the location of the file into the button file in the first column. All all you have to do is set up ten button files for the first column with names, like render, animation, motion, whatever you need, and add your scripts in the second column. Once you have added all your scripts, you only have to run multipanel from the main python window, and up to 100 scripts are available. This way you can organise scripts into categories, and delete and add as needed. In this example idea, when you click on the animation button, it loads ten scripts into the second column. You can then add and delete in the second column. When you click on Geom, it will load the ten scripts in the button file for Geom, and you can add and delete scripts in the second column.

telezine posted Tue, 02 March 2004 at 2:55 AM

Depending on whether this needs to run on MacOS as well, you could use Windows' SendKeys function and create an external toolbar to send commands to Poser. These commands can fire at the menu itself, almost invisibly calling "file:run python script" and selecting a script with no need for interaction (or it can stop at this point and allow selection of a script manually, but there's no real point in that). This allows for a virtually limitless amount of script buttons visible at any time (imagine just having all of your favorites accessible at once), especially since you can configure the font size to as small as you're comfortable with. I've been using it for a while to run commands that have no hotkey that I want to be able to get at without menu digging. The program I use is here (such a program already exists): http://www.zoology.ubc.ca/~rikblok/software/toolbar/index.html As for MacOS, there is probably a way to do something similar in AppleScript. As an aside, what I would love in a service release is for those horribly oversize room tabs to go away, replaced by entries in the Window menu. I am continuously hitting the hair and cloth tabs when trying to grab the rotate view widget. ARGH!!! ;P