Forum: Poser Python Scripting


Subject: Changing Alternate_Diffuse value

papillon68 opened this issue on Nov 19, 2010 · 24 posts


markschum posted Fri, 13 January 2012 at 10:23 PM

its saying there was no PoserSurface node found in that material.

The script is going to try looking at all materials in all figures in that scene. Before the tracebacks you should get printed to the screen the figure name its currently examining.

Check that figure manually to make sure it actually has materials.

 

n = tree.NodeByInternalName("PoserSurface")

if n:
      i = n.InputByInternalName("Diffuse_Value")
      i.SetFloat(0.8)
      tree.UpdatePreview()

 

 

make this change should get you past the problem as a quick fix.