Ghostofmacbeth opened this issue on Mar 17, 2009 · 6 posts
PhilC posted Tue, 17 March 2009 at 1:17 PM
For all materials in a figure?
# script to set specularity to zero<br></br>
# for all materials in a figure
import poser<br></br>
scene = poser.Scene()<br></br>
fig = scene.CurrentFigure()<br></br>
materials = fig.Materials()
for mat in materials:<br></br>
root = mat.ShaderTree().Node(0)<br></br>
nodeInput = root.Inputs()[3] # specularity<br></br>
nodeInput.SetFloat(0.000)<br></br>
mat.ShaderTree().UpdatePreview()<br></br>
<br></br>
scene.DrawAll()