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 โค๏ธ