timarender opened this issue on Jul 13, 2012 ยท 4 posts
millighost posted Fri, 13 July 2012 at 8:42 AM
It should roughly look like this:
import poser
scene = poser.Scene ()
actor = scene.CurrentActor ()
material = actor.Materials ()[0]
shader = material.ShaderTree ()
image_map = shader.CreateNode (poser.kNodeTypeCodeIMAGEMAP)
path_input = image_map.InputByInternalName ("Image_Source")
path_input.SetString ("d:my_image.png")
surface = shader.NodeByInternalName ("PoserSurface")
shader.AttachTreeNodes (surface, "Diffuse_Color", image_map)