MaskimXul opened this issue on Feb 26, 2011 · 11 posts
markschum posted Sat, 26 February 2011 at 4:12 PM
So you want a different image map for the diffuse and change specular color to a new RGB value ?
Thats not too difficult. I should have one somewhere in my zips .
Here is one offhand that you can copy and paste to set specular color
import poser
scn = poser.Scene()
fig = scn.CurrentFigure()
mats = fig.Materials()
if mats:
print fig.Name()
for mat in mats:
tree=mat.ShaderTree()
n = tree.NodeByInternalName("PoserSurface")
if n:
i = n.InputByInternalName("Specular_Value")
if i:
i.SetColor(0.5,0.5,0.5) # replace with rgb values
tree.UpdatePreview()
scn.DrawAll()