Forum: Poser Python Scripting


Subject: Need help with simple material script

232bird opened this issue on Sep 27, 2011 · 19 posts


markschum posted Sun, 30 October 2011 at 9:38 PM

I would suggest you not use Input(x) although it does work. If poser adds something to PoserSurface it will break, and it makes it hard to undrstand what is going on.

the firt shadertree statement seems like its not needed.

Node(0).InNode() i think is wrong - InNode(0 is a input method)

so Diff_color_input = Node.Input(0).InNode() is what you need

dont understand this at all:

  print "Node is not an image map, moving to next input..."
           node1 = node2
           node2 = node1.InNode(0)
           testIMG()

its saying make node1 = node2

then its wrongly trying to get the node connected to node1

that wont work.

#node.Input(21).setInput(0)  try setfloat(0)

try fixing you Innode problem and see what breaks then ;-)