Hi,
in our facility we are working with Nuke+Deadline with a custom submitter.
To keep things modular, we are skipping the ~/.nuke/init.py and sending the NUKE_PATH in the environment path of the job.
Generally we are working on MacOs workstations but sometimes an artist working on Windows need to submit jobs to our render farm. The windows artist is sending his NUKE_PATH (ex: X:/facility/config) but if the slaves are in macOs the job fails.
We have set the path mapping in the render farm but it seems that the environment paths doesn’t get mapped.
I thought of creating a “PreJobScript” that checks if the platform the slave is running, and map the paths in the environment, but I don’t know if there is a better way to do this.
Also, I’m unable to find examples of how I can create a custom PreJobScript, where to put it (surely in the repo) and if it is going to work.
Thanks for reading.