Here's my first results. The script is make of 4 classes, but we only need to call one of them. What it does is defined by a text file that indicates what overlays are created over what MAT zones. The text file has only 4 lines, defining the figure, the list of MAT zones, and the list of overlay textures that go on each of those MAT zones. Of course, the script requires that these 2 lists must have the same number of items. Below is the definitions I have used for this example:
============
Figure: Dawn
MatZones: 3_Face, 3C_Body, 3C_Hip, 3B_Legs, 3A_Collars, 3A_Arms
OverlayMaps: Strips_head_Color.PNG, Strips_torso_Color.PNG, Strips_torso_Color.PNG, Strips_legs_Color.PNG, Strips_limbs_Color.PNG, Strips_limbs_Color.PNG
TexturesPath: Runtime\Textures\Ken1171\KittyOverlays
============
This example creates and inserts texture overlays over 6 MAT zones, and they apply over whatever textures the figure already has on stage. Below is the resulting "kitty stripes" over 3 different existent body textures on Dawn. By creating a new definitions text file, we can apply any overlay textures over any number of specific MAT zones, which also means it works with any figures.
I haven't learned how to create Python graphic interfaces yet, so this has to be ran from the Python Scripts menu in Poser. If we want to use a different definitions file, we need to edit the main script file, which only has 3 lines. See below. Just change "filename" from the 2nd line to the new text file name, and run it. Pretty simple. The effect applies to whatever figure is selected. This saves me a lot of manual labor.
=============
from Overlay_Loader import OverlayLoader
filename= 'def_DawnStripes.txt'
OverlayLoader(fileName, path).execute()
=============
I just need to adjust the code to also work with textures applied to the "alternative diffuse" channel, and it will be complete. ^______^
============
Figure: Dawn
MatZones: 3_Face, 3C_Body, 3C_Hip, 3B_Legs, 3A_Collars, 3A_Arms
OverlayMaps: Strips_head_Color.PNG, Strips_torso_Color.PNG, Strips_torso_Color.PNG, Strips_legs_Color.PNG, Strips_limbs_Color.PNG, Strips_limbs_Color.PNG
TexturesPath: Runtime\Textures\Ken1171\KittyOverlays
============
This example creates and inserts texture overlays over 6 MAT zones, and they apply over whatever textures the figure already has on stage. Below is the resulting "kitty stripes" over 3 different existent body textures on Dawn. By creating a new definitions text file, we can apply any overlay textures over any number of specific MAT zones, which also means it works with any figures.
I haven't learned how to create Python graphic interfaces yet, so this has to be ran from the Python Scripts menu in Poser. If we want to use a different definitions file, we need to edit the main script file, which only has 3 lines. See below. Just change "filename" from the 2nd line to the new text file name, and run it. Pretty simple. The effect applies to whatever figure is selected. This saves me a lot of manual labor.
=============
from Overlay_Loader import OverlayLoader
filename= 'def_DawnStripes.txt'
OverlayLoader(fileName, path).execute()
=============
I just need to adjust the code to also work with textures applied to the "alternative diffuse" channel, and it will be complete. ^______^