IFD's and environment variables

   3665   8   1
User Avatar
Member
221 posts
Joined: July 2005
Offline
I am trying to use a large compute cluster here and I want to be able to use environement variables for paths to geometry and texture maps (since they are different on the cluster and on my local machine). When I create my .ifd files, the environment variables that I have in the parameters of my OBJ nodes get expanded. Then when I go to render them on the cluster, they aren't variables anymore and the external files aren't found.

Any ideas on how to prevent Houdini from expanding the environment variables when I write the .ifd files?

Dave
User Avatar
Member
221 posts
Joined: July 2005
Offline
I used the prerender script to temporarily change the environment variable value. That way when it writes out the .ifd file, it hard codes the correct path. Then the postrender script changes it back.

Is there a better way?
User Avatar
Member
401 posts
Joined:
Offline
Maybe:
http://www.sidefx.com/index.php?option=com_mailarchive&Itemid=212&view=IDX&exactsubject= [sidefx.com]%20non-hardened%20environment%20variables%20in%20IFDs?&perpage=20&revdate=off
this is not a science fair.
User Avatar
Member
221 posts
Joined: July 2005
Offline
Those posts seem to say the best you can do is post process the ifd file with the editor of your choice. I was just hoping to avoid that.
User Avatar
Member
401 posts
Joined:
Offline
I read it like:

Can you protect $VARNAME with \$VARNAME…

So the clusters would get the envar and expand it locally rather than the machine writing ifds.
this is not a science fair.
User Avatar
Member
221 posts
Joined: July 2005
Offline
I'll try this tomorrow, thanks.
User Avatar
Member
949 posts
Joined: April 2008
Offline
I am having trouble in preserve my $JOB inside the ifd because it doesn't save inside the file, is there a way to do it?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
949 posts
Joined: April 2008
Offline
Anyone?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
949 posts
Joined: April 2008
Offline
Changing the question a little bit, why when I use the mantra command to render an IFD it doesn't recognize my environment variables like $JOB? Is that normal? I know that because my caches with $JOB mantra can't find.
Edited by mzigaib - Feb. 1, 2017 21:11:52
https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links