Forum: Poser - OFFICIAL


Subject: The LuxPose Project - Alpha Stage

Khai-J-Bach opened this issue on Aug 27, 2010 ยท 1684 posts


adp001 posted Tue, 05 October 2010 at 3:42 PM

Save this in a file with extension ".py"

import poser
scene = poser.Scene()

EXCLUDEDACTORS="UNIVERSE","GROUND",

for ac in scene.Actors() :
    if ac.InternalName() in EXCLUDEDACTORS : continue
    if (ac.IsProp() or ac.IsBodyPart()):
        print ac.Name()
        for mat in ac.Materials() :
            n=mat.ShaderTree().Node(0)
            n.InputByInternalName("Ambient_Color").SetColor(0,0,0)
            n.InputByInternalName("Ambient_Value").SetFloat(0)
        
scene.DrawAll()
print "Done."