Embedding string reference in Hscript

   1502   2   0
User Avatar
Member
9 posts
Joined: Aug. 2014
Offline
Greetings all,

I have an node with a scale value that I want to link to another node, but the name of that node may change. Basically what I want is this:

ch('../pathTo/mySourceNode/`chs(“../pathTo/stringFieldOnDigitalAsset”)`/sx')

However the syntax doesn't work and always returns 0. I've tried a number of variations, like backticks around the entire thing, and backslashes in front of the inside backticks. Does anyone know what I'm missing?
User Avatar
Member
8554 posts
Joined: July 2007
Offline
try this:
ch(“../pathTo/mySourceNode/” + chs(“../pathTo/stringFieldOnDigitalAsset”) + “/sx”)
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
9 posts
Joined: Aug. 2014
Offline
That worked perfectly, thank you!
  • Quick Links