When a string parm is set with a hscript reference to another parameter, how can we delete or replace this reference?
If I simply do set, it will change the value of the referenced parameter and deleteAllKeyframes() does nothing…
The only solution I found at this time is the next:
p = hou.parm('/obj2/geo2/file1/file') if p.getReferencedParm() != p: p.revertToDefaults() p.set('`chs("../../geo/file1/file")`')
Or change this to an expression…
Am I wrong or there is no other way?
Thanks