Tue, Jan 21, 2:11 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 21 1:30 pm)



Subject: Python Scripts (P8): Documentation Anywhere?


ElZagna ( ) posted Sun, 11 December 2011 at 2:18 PM · edited Mon, 02 December 2024 at 7:57 PM

There are a number of python scripts bundled with Poser (P8), and I assume many of them are quite useful. Actually, over time I've figured out what some of them do and even use a couple of them regularly, but it's a pretty tedious process for each user to do this one by one. Maybe I've just overlooked the place where they are described. It would be nice if I had complete documentation for each on, but at this point, just a description of each one's purpose would be nice.(I realize that the Wardrobe Wizard is thoroughly documented.)

On a related matter, I see that there are a number of videos that live in the PoserScripts folders (...Smith MicroPoser 8RuntimePythonposerScriptsProjects...). Is there supposed to be some audio that goes with each one? There is some corresponding text that apparently goes with each one, but it looks like they were intended to have audio embedded. WHat's up with that?



OS: Windows 10 64-bit, Poser: 10


bagginsbill ( ) posted Sun, 11 December 2011 at 4:00 PM

Read the comments in the scripts. For example, changeGamma.py:

A script to change the texture gamma values on either the current material, the current figure or all props and figures.

Found both under the Wacros->User Defined Menu and the Python Scripts -> Material Mods pallette

It'll do a recursive search to find any leaf nodes that are plugged into the chosen channels of the root node

(which, in general, is the PoserSurface node). Also provides option to revert to Render Settings

Extra error catching for string resources so we can use the script in places where the languagesComplete.xml has not been

updated.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


bagginsbill ( ) posted Sun, 11 December 2011 at 4:01 PM

Another example from CopyMorphData.py

Merges two Poser CR2/PZ3 files to one, changing exchanging the channels of an specified actor (e.g. "head" or "leftEye").  A CR2 looks like

  Part1: something irrelevant before the channel part   Part2: the channel part   Part3 the rest

The two source CR2/PZ3 files are called SOURCE1 and SOURCE2 each consisting of the three parts.  The resulting CR2/PZ3 File TARGET looks like

  SOURCE1.PART1 + SOURCE2.PART2 + SOURCE1.PART3

The module can be used from other modules:

  import Convert   convert = Convert()   convert.convert(absolutePathToSource1,                   absolutePathToSource2,                   absolutePathToTarget,                   actor)

NOTE: the three files MUST be different.                 

Additionally, this Python module can be called from command line:

  python Convert.py


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


ElZagna ( ) posted Sun, 11 December 2011 at 8:39 PM

Indeed, BB, many, but not all have some sort of description inside the script. Alas many, but not all of these descriptions are gobbledygook - at least to me. Here's one:

geom_genmesh.py

#    Create a prop from a procedurally generated sinusoidal function.
#   An initial geometry is created from a scalar function and then a
#   duplicate is offset and added using functions from the Numeric
#   package.

OK, it looks like the bottom line is that these scripts aren't documented in a single place, so each user has got to figure out what they do on a one-by-one basis.



OS: Windows 10 64-bit, Poser: 10


markschum ( ) posted Sun, 11 December 2011 at 11:03 PM

genmesh creates a prop geometry as desribed in the comments. Try running it in a new scene and see what happens.

There is no main document that explains what they all do that I know of.


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.