Forum: Poser Python Scripting


Subject: Need help, can this be done?

MaskimXul opened this issue on Feb 26, 2011 · 11 posts


MaskimXul posted Sat, 26 February 2011 at 4:28 PM

 

Quote -  import poser
r = 128
g = 245
b = 135
f = poser.Scene().CurrentFigure()
for m in f.Materials():
______m.ShaderTree().Node(0).InputByInternalName('Highlight_Color').SetColor(float(r)/255.0, float(g)/255.0, float(b)/255.0)

got an error

  File "C:Program FilesSmith MicroPoser ProRuntimePythonposerScriptsWacrosUserDefinedSpecularColor.py", line 8
    ______m.ShaderTree().Node(0).InputByInternalName('Highlight_Color').SetColor(float(r)/255.0, float(g)/255.0, float(b)/255.0)
          ^
IndentationError: expected an indented block