so what i want to do is get the selected arnoldImage node and set that to another usdUvTexture node.
All work fine if you run it once.
so the relative path is set automaticly and in the usdUvTexture node in the file i get `chs("../ARN_new/BaseColor/filename")`
wich is correct as it is the relative path to the arnoldImage node
but as soon as i run it another time to update it so it should put `chs("../ARN_new/Roughness/filename")` in the node it doesnt work.
As it automatically fills in the ref and instead of updating the usdUvTexture node it fills it in the arnoldImage.
is there any way to solve this
import sys import toolutils import hou ##make selection selectedNode = hou.selectedNodes()[0] selectedNodeName = str(selectedNode) nodeType = hou.nodeType(selectedNode.path()) ##get parent name and contex path (Arnold material Builder) arnoldMatBuilder = selectedNode.parent() arnoldMatBuilderConnection = arnoldMatBuilder.outputs() arnoldMatBuilderPath = arnoldMatBuilder.parent().path() arnoldMatBuilderName = str(arnoldMatBuilder) amb = hou.node(arnoldMatBuilderPath) texRef = str('`chs("../'+ arnoldMatBuilderName + '/' + selectedNodeName + '/filename")`') usd_tex_base = hou.node(arnoldMatBuilderPath + '/' + "USD_tex_BaseColor_" + (arnoldMatBuilderName[4:])) usd_tex_base.parm('file').set(texRef)

