Hey
I have an issue with a parameter set to a channel reference.
I cannot get rid of it.
/out/geometry1.sopoutput is set to `chs("test")`.
Now I want to change /out/geometry1.sopoutput to some value.
No matter what I try, it always changes /out/geometry1.test instead.
I tried:
hou.node( "/out/geometry1" ).parm("sopoutput").deleteAllKeyframes()
hou.node( "/out/geometry1" ).parm("sopoutput").set("MyOutputA")
hou.node( "/out/geometry1" ).parm("sopoutput").set("MyOutputB", follow_parm_reference=False)
hou.node( "/out/geometry1" ).parm("sopoutput").set("MyOutputC", None, False)
https://www.sidefx.com/docs/houdini/hom/hou/Parm.html [www.sidefx.com]
states that deleteAllKeyframes() or follow_parm_reference=False should solve my problem.
"If this parameter currently contains a channel reference to another parameter, then this method will follow channel references and change the value of the referenced parameter. If this is not the desired behavior, then first delete the channel reference with hou.Parm.deleteAllKeyframes(). Alternatively if you are setting the value to another parameter and do not want to follow existing channel references then set the optional follow_parm_reference argument to False."
Any idea what I am doing wrong?