Forum: Poser 12


Subject: Problems with V4 skin tone in Poser 12

crystalmethodcaf opened this issue on Jan 12, 2021 ยท 18 posts


Y-Phil posted Sun, 17 January 2021 at 10:36 AM

Just in case that interests someone, here is a little script to reset the diffuse color/values to white/1.0 for the 'PoserSurface' root nodes of the currently selected figure:

# This sets the diffuse value/colour to 1.0/white on ALL textures of the currently selected figure
#
# Author: Y-Phil (on Renderosity)
# Version: 2021-01-17

import poser


def main():
    scene = poser.Scene()
    try:
        fig = scene.CurrentFigure()
    except:
        fig = None

    if not fig:
        poser.DialogSimple.MessageBox("Please select a figure...")
        return

    if not poser.DialogSimple.YesNo(
        "Please, confirm to reset the diffuse color/value " + 
        "in this figure's material def.:n" + fig.Name()
    ):
        return

    for mat in fig.Materials():
        root_node = mat.ShaderTree().NodeByInternalName('PoserSurface')
        if bool(root_node):
            node_input = root_node.InputByInternalName('Diffuse_Color')
            if bool(node_input):
                node_input.SetColor(1.0, 1.0, 1.0)
            node_input = root_node.InputByInternalName('Diffuse_Value')
            if bool(node_input):
                node_input.SetFloat(1.0)
        
    scene.Draw()


main()

๐’ซ๐’ฝ๐“Ž๐“


(ใฃโ—”โ—กโ—”)ใฃ

๐Ÿ‘ฟ Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
๐Ÿ‘ฟ Mac Mini M2, Sequoia 15.2, 16GB, 500GB SSD
๐Ÿ‘ฟ Nas 10TB
๐Ÿ‘ฟ Poser 13 and soon 14 โค๏ธ