$JOB variable

Post Reply
90okm
Posts: 4
Joined: Sun Oct 08, 2017 11:09 am

$JOB variable

Post by 90okm » Fri Dec 01, 2017 1:25 pm

How can i pass the $JOB houdini variable to AF. i'd like it to be a part of $HOUDINI_OTLSCAN_PATH

i've found the only way so far :
i've edited cgru/software_setup/setup_houdini.sh and added this line of code
export JOB=$(${CGRU_LOCATION}/software_setup/houdini_job.py $@ 2>&1)
where houdini_job.py just parses the $@ string trying to find scene path and reconstructs another project path that will be set as the $JOB value

but it seems like rather brutal )))
may be there is another way ?

User avatar
timurhai
Site Admin
Posts: 304
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: $JOB variable

Post by timurhai » Sun Dec 03, 2017 7:38 pm

Hi.
This is a solution. And i do not think that it is brutal.
Now i see that Afanasy ROP needs an "extra environment" and "extra command arguments" parameter that can be used in wrappers.

I am using wrapper too, to setup software in different ways.
Any command has a working directory where it will be launched.
Submission script passes current working directory on a job creation.
Artists launch soft with a different setup by clicking on different launchers (scripts).
That scripts just "cd /needed/folder/" and then run needed soft.
Timur Hairulin
CGRU 2.2.3 Ubuntu 14.04LTS (gcc4.8.4)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest