$JOB in a multi OS environment

   3238   6   1
User Avatar
Member
174 posts
Joined: March 2014
Offline
Hi,
The $JOB is written in the scene file

How can i have multiple value for $JOB for rendering ???

Thanks
User Avatar
Member
918 posts
Joined: March 2014
Offline
Hi,
you can make use of the HOUDINI_PATHMAP in your houdini.env file for this.

HOUDINI_PATHMAP
This string defines multiple mappings represented as a
Python-style dictionary. Mappings can map one directory to
another directory. The key is the directory to map and the value
represents the destination directory. For example:
{ “ctemp”:“/tmp”, “/mnt/render”:“//storage/share/render” }
would create two directory mappings.

Andy
User Avatar
Member
174 posts
Joined: March 2014
Offline
Hi Andy,
That's great but that's not changing the $JOB variable stored in hip files

Bummer, am i missing something ?

Example

On a MAC:
the hip file store JOB=/share/mdpsrv/jobs/XXX

now i load that hip on windows
in the .env file there is

HOUDINI_PATHMAP = {“/share/mdpsrv/jobs”:“//MDPSRV/jobs”}

the hip file isn't loaded correctly and in “alias and variable”
JOB=/share/mdpsrv/jobs/XXX (the mac path)

specifing JOB in the .env file works until we load the hip file who erase the JOB with the wrong one
User Avatar
Member
918 posts
Joined: March 2014
Offline
Hi,
I just double checked, from OSX to Windows. I placed three geo nodes, .bgeo, .obj and .abc. I noticed that the .abc does not load, the SOP throws an error. I'll submit a BUG for this later. The .bgeo and .obj SOPs load fine.

However, please consider that the string for the paths itself is not changed, Houdini uses the pathmap internally.

In the Textport:
/ -> echo $HOUDINI_PATHMAP
{“/Users/andy/Documents_Cloud”:“EDocuments_Cloud”}
/ ->

In houdini.env:
HOUDINI_PATHMAP = {“/Users/andy/Documents_Cloud”:“EDocuments_Cloud”}

Can you say what doesn't load correctly in your .hip? Are you using Alembics?

Andy
User Avatar
Member
174 posts
Joined: March 2014
Offline
i'm using bgeo for now then alembic too.

But my problems goes with using $JOB in the filepaths
variables aren't converted with $HOUDINI_PATHMAP

I need to run tests with fullpath thought, later today, stating about that.

Thanks
User Avatar
Member
918 posts
Joined: March 2014
Offline
I see, what I always use is the ‘Environment qL’ SOP from qLib. This allows quick changes to env vars among much more.

Have a look: qLib on GitHub [github.com] and qLib on Facebook [facebook.com]

Hope this helps,
Andy
User Avatar
Member
174 posts
Joined: March 2014
Offline
Thanks,
i was aware of environment_ql but until you know what to do with python and site_enviroment.py seems i just can't have a $JOB valid between different operating systems.

Essentially i was exactly after that http://forums.odforce.net/topic/18577-set-job-relate-to-hip/ [forums.odforce.net]

I think this is way too complicated for me.
I should go back to $HIP even if it involves a little mess with hip organisation.


  • Quick Links