maur_2005 opened this issue on Jan 09, 2020 ยท 5 posts
maur_2005 posted Thu, 09 January 2020 at 10:31 AM
Hi folks,I'm trying to change the texture of a node in the Shader Tree but I'm having trouble, maybe someone can help me This is my code:
NewPathString = ""
NewTextureString = ""
scene = Poser.Scene()
actor = poser.Scene().CurrentActor()
for mat in actor.Materials():
Tree = mat.ShaderTree()
for node in tree.Nodes:
if targetNodeName = node.Name()
node.Material(mat.Name()).SetTextureMapFileName(NewTextureString)