Forum: Poser - OFFICIAL


Subject: Texture overlaying onto a figure via MAT pose? (Claw marks)

Xameva opened this issue on Jul 06, 2011 · 25 posts


markschum posted Thu, 07 July 2011 at 5:25 PM

@les, yes of course. The crude way is to count inputs from the top

so in my script imgnode.Input(2).SetFloat(x) will set U_scale

ingnode.Input(7) is the clamped parameter and thats where you screw around to see what the settings are.

You can of course get the input by node.InputByInternalName("name")  and thats better for documenting code but you have to recurse the node to get the internal names. 

Look at Poser python methods manual ,Shader node and shader node input sections.

 

You probably want to duplicate this bit

np = nod.InputByInternalName("Diffuse_Color")
mynode = inp.InNode()
if mynode:
    inp.Disconnect()

for specular

nps = nod.InputByInternalName("Specular_Color")
mynodes = inp.InNode()
if mynodes:
    inp.Disconnect()

and then connect the blend node to specular.  I will change those and repost the script later tonight