HScript directory string reference

   1099   1   0
User Avatar
Member
33 posts
Joined: Jan. 2015
Offline
Hi!
I'm trying to set up a transportable way of procedurally reading files that may be moved to different computers. I thought of just copying them into each project so they'd be at $HIP level but I'm choosing to make this more difficult for myself

I'd like to read the directory from a one place - like an obj level node and have the file name itself read from the specific file node. So the file note below would read the file at “$HOME/TestFiles/specific_directory/thisfile.obj”
Syntax wise I can't figure it out though. Any help appreciated!
Thanks
Edited by morganv123 - Nov. 24, 2018 11:31:42

Attachments:
Screen Shot 2018-11-24 at 11.22.44 AM.png (113.2 KB)

User Avatar
Member
33 posts
Joined: Jan. 2015
Offline
Actually I found the answer here https://www.sidefx.com/forum/topic/54311/ [www.sidefx.com]

No back ticks and editing the expression with Command-E created a key frame and now it works.

Ended with something like this: chs(“/obj/PATH/directory”)+“/”+$OS+“/”+$OS+“.obj”

which magically resolves to the correct filename. Thanks forum!
  • Quick Links