absolute path to relative path

   3874   2   0
User Avatar
Member
7 posts
Joined: 1月 2018
Offline
Hi!

I'd like to know if there is a way to convert an absolute path to a relative path (relative to $HIP).

For example, in a File node, you have the Geometry File path.
When you use the File Chooser, it creates an absolute path automatically.

The only way I found so far is to recreate the relative path by hand. (typing $HIP/../../../)
Is there a “convert to relative path” hidden somewhere?
Or maybe an option to have relative path as default behaviour when we choose a file?


Thanks,
User Avatar
Member
338 posts
Joined: 12月 2014
Offline
Set $JOB to the path you want to use. $JOB shows up in the file chooser so use it instead of browsing directly to a location. You can use $HIP too, but $JOB is customizable
User Avatar
Member
7 posts
Joined: 1月 2018
Offline
Thank you Andy,

I just figured out what was wrong: I'm on OSX, and the “native file chooser” didn't show $HIP or $JOB, only absolute paths…

When I change it to “Houdini Chooser” in Preferences/General User Interface/File Choosers, I have access to $HIP and $JOB to create relative paths.
  • Quick Links