#set trans value to 1, attach image node import poser, string # image file mypath = ":Runtime:Textures:vendor:product:" myfile = "test.jpg" # fig = poser.Scene().CurrentFigure() geomFile = os.path.split(fig.GeomFileName())[1] if geomFile == "blMilWom_v4b.obj": mat = fig.Material("2_SkinHead") nod = mat.ShaderTree().NodeByInternalName("PoserSurface") inp = nod.InputByInternalName("Transparency_Max") inp.SetFloat(1) # check and disconnect anything plugged in here myn = inp.InNode() if myn: inp.Disconnect() # create and attach the image node # test and set image file # myfname = mypath + myfile thisnode = mat.ShaderTree().CreateNode(poser.kNodeTypeCodeIMAGEMAP) thisnode.ConnectToInput(inp) thisnode.Input(0).SetString(myfname) mat.ShaderTree().UpdatePreview() poser.Scene().DrawAll() else: print "** Figure selected is NOT V4 ***" print "Done!"