Forum: Poser - OFFICIAL


Subject: Pose file (MAT) that only affects certain nodes... (Poser 11 Pro)

Ayelmar opened this issue on Aug 28, 2021 ยท 15 posts


HartyBart posted Sun, 29 August 2021 at 5:25 AM

Someone recently wanted a script to do the opposite - remove a wet-look that it has apparently become fashionable to apply to the skin of new dial-a-doll Poser characters by default. This targeted similar nodes. Thus perhaps you could change the node InternalName and the nodeInput. command here to do what you want?

import poser

scene = poser.Scene()
scn = poser.Scene()

figs = scene.Figures()
acts = scene.Actors()

for fig in figs:
        mats = fig.Materials()
    if mats:
            for mat in mats:
                tree=mat.ShaderTree()
                root = mat.ShaderTree().Node(0)
                nodeInput = root.InputByInternalName('AlternateDiffuse')
                nodeInput.Disconnect()
                nodeInput = root.InputByInternalName('AlternateSpecular')
                nodeInput.Disconnect()
                tree.UpdatePreview()

for act in acts:
    if act.IsProp() or act.IsHairProp():
        mats = act.Materials()
        if mats:
            for mat in mats:
                tree=mat.ShaderTree()
                root = mat.ShaderTree().Node(0)
                nodeInput = root.InputByInternalName('AlternateDiffuse')
                nodeInput.Disconnect()
                nodeInput = root.InputByInternalName('AlternateSpecular')
                nodeInput.Disconnect()
                tree.UpdatePreview()

scn.DrawAll()



Learn the Secrets of Poser 11 and Line-art Filters.