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
HScript directory string reference
1099 1 0- morganv123
- Member
- 33 posts
- Joined: Jan. 2015
- Offline
- morganv123
- 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!
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