Jump to content

Houdini variables


Recommended Posts

Hi,

I have an issue with my $HIP variable being local. I am rendering on the render farm and I wish there was a way to tell houdini to set up $HIP as a network path.

I have tried setting HIP manually in Edit -> Aliases and Variables but of course it's being overwritten with a local path after saving the scene file.

So I was wondering

1. is there a way to set $HIP manually and force it not to update after saving the scene?

2. can I make Houdini to set up $HIP as a network path?

I could create a new custom variable and assign my network path to it. but it would be a torture for me to go through my scene and update every single path that has $HIP in it.

3. is there a way to automatically change all the scene paths that contains $HIP? Maybe a python script that iterates through all the paths changing HIP in to something else..?

Anyway, let me know if you have an idea how could I approach my problem

Thanks

Link to comment
Share on other sites

I could be mistaken since I haven't used it in a while, but I have a feeling you should/would be better off using $JOB instead of $HIP.

Oh, that would have been great if I knew this from the beginning of my project, but now I have to go and change every $HIP to $JOB manually. I wish I would not have to do this...

Is there a way around it?

  • Like 1
Link to comment
Share on other sites

I think $HIP is the correct variable for rendering on a farm. That is what I use without any trouble.

If I place my project file here.

//machinename/folder/project.hip

And I have a shared resource here

//machinename/folder/textures/map.png

then the path should be

$HIP/textures/map.png

Work's just fine on the render farm, as long as each node can access //machinename

You can not do this with $HIP, at least the last time I tried it failed on the farm.

$HIP/../someparentfolder/map.png

p.s. That's on Windows, but the process is the same on Linux.

  • Like 1
Link to comment
Share on other sites

$HIP changes though depending on where you opened your file from. So it could work on your farm, but perhaps not somebody elses :)... depends on how it's all setup. $JOB doesn't change unless you tell it to, so it's more reliable as a path.

M

  • Like 1
Link to comment
Share on other sites

$HIP changes though depending on where you opened your file from. So it could work on your farm, but perhaps not somebody elses :)... depends on how it's all setup. $JOB doesn't change unless you tell it to, so it's more reliable as a path.

M

ah.. ok. So my farm is setting the hip file's location as the current working folder, and on his farm it's opening it from a different folder.

i get now. thanks.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...