Hi, I am studying python to set a parameter of string (cachePath) by script. After executing the code, ideally it pastes original, "`chs("resouceA")`_`chs("resouceB")`", instead of expanded result "G:/Projects/RnD_000_001/geo_element "
So far, I am thinking two methods:
A
a = r(\"\`chs(\"resouceA\")\`_\`chs(\"resouceB\")\` ")
# this way is too many back splash and so confusing
B
resA = hou.node('.').parm('resourceA').unexpandedString()
resA = hou.node('.').parm('resourceB').unexpandedString()
a = resA + resB
# this way is ok, but when there are 5-10 parmeters, it would be too much work.
Do we have a simplest way or special command?? Ideally something like this:
a = unexpandedExpression("`chs("resouceA")`_`chs("resouceB")` ")
Thanks