Forum: Poser Python Scripting


Subject: Script request

Jaager opened this issue on Sep 28, 2013 · 13 posts


Jaager posted Tue, 01 October 2013 at 4:08 AM

What I am requesting is a script that takes any .mt5 , reads it, and adds the nodes for each material in the .mt5 to that material in a selected figure.  

At first it was reported that PP2014 would do this using VV instead of V in the Materials library - doing this crashes Poser for me.

There is a python script for the product Vacularity that adds nodes for one texture to all of the materials using that texture.  One for color map, one for displacement.  Because V4 uses 3 different color maps for all of the skin, this product has a button for each of the color maps or displacement maps.  It is 6 buttons if you want the whole K&K added to an existing figure.  The nodes come in connected.  The color setup even inserts a colormath node between the existing color map and Poser Surface.

There is no master button to do all textures.  Was this because it can't be done?

This says that Python will do partial materials.  One of the things I am asking is:

Can this function be made to be generic - not set for a specific texture -

either using a choice box in the script or

having the texture reference be a cypher like aaa.aaa - bbb.bbb - each texture having a unique cypher.  Since a .py is a text file, find/replace in a text editor could convert the script to a specific texture.

The displacement script is more simple.  The addition would probably to a single material.   The node setup is likely to be complex - involving activating the animate function with a rotation being a Master and the displacement value being the Dependent.   - The node setup would probably be the same for each of several displacement maps.  The maps would vary -  the material target would depend on which map is used - the Master rotation would be specific to the map.

Can a Python script be written that inserts a displacement setup - attached if possible - that allows a user to text edit in a specific map and a specific rotation?

I don't have the node done yet. I don't have the displacements yet either. But I am thinking that elbows, vertebra, patella - would work maybe better as a displacement than a morph.  I know that morph JCM can be activated using a .pz2.  The JCmap may also need be done by a .pz2.  But the actual node complex needs a partial material function.

I thought that EZskin coverted a color setup to SSS.  Does it do user added nodes and can it read an existing setup?