tagosaku Posted June 23, 2017 Share Posted June 23, 2017 hi, I have a question about filecache node. Basically I want to construct folders - project folder - HIP folder (save hip file here) - geo folder (cache here) I think 'project set' set $JOBS a file path, then we can use $JOB to make relative path. However, I try to skip that process because I don't like so much, also most productions don't use it. Then I use this expression in file cache node > geometry file `strreplace("$HIP/geo/$OS.bgeo.sc", "HIP/", "")` It seems to be working well, but I wonder if anyone knows a smarter way, let me know. Quote Link to comment Share on other sites More sharing options...
f1480187 Posted June 23, 2017 Share Posted June 23, 2017 $HIP/../geo/$OS.bgeo.sc Quote Link to comment Share on other sites More sharing options...
tagosaku Posted June 24, 2017 Author Share Posted June 24, 2017 (edited) umm, the result is not right.. Edited June 24, 2017 by tagosaku 2nd pic is wrong one as reference Quote Link to comment Share on other sites More sharing options...
f1480187 Posted June 24, 2017 Share Posted June 24, 2017 (edited) It's right, try it. "root/HIP/../geo/foo.bgeo.sc" would work same as "root/geo/foo.bgeo.sc" here. Check here about relative paths, Houdini uses UNIX-like. relative_path_example.zip Edited June 24, 2017 by f1480187 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.