Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 22 5:13 am)
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()
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
I am wondering if there is a python script to turn the specularity to 0. Thanks