'Revert' the scene to undo.
# A PoserPython script to disconnect all bump maps across a scene, working
# for Poser 12. Useful when about to make a clean line-art only Firefly render.
# The bump-maps are what cause the speckles that make such a render un-usable
# in postwork.
import poser
scene = 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('Bump')
nodeInput.Disconnect()
nodeInput = root.InputByInternalName('Gradient_Bump')
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('Bump')
nodeInput.Disconnect()
nodeInput = root.InputByInternalName('Gradient_Bump')
nodeInput.Disconnect()
tree.UpdatePreview()
scene.DrawAll()
Learn the Secrets of Poser 11 and Line-art Filters.