I am creating a python script, job and plugin info file and storing it locally using ClientUtils.GetDeadlineTempPath()
Then I use ClientUtils.ExecuteCommandAndGetOutput(arguments) to send those three files to the repository.
It copies the python script to the repo jobID folder and uses the correct information from the two job files, but it still references the python script from the local temp directory as the “ScriptFile” and not the file in the repository.
I was trying to get around saving the python script to a server directory and then running it from there, it is almost as if i need to create the jobID folder before I send the job to render. Is this possible? What is the cleanest way to do this?
I basically want to run the script that is created in the repository jobID folder but unsure how to reference to that location before the job is submitted.
It is okay, I figured out looking at some other plugin scripts that you can send it to the repo jobID folder and then that gets copied to each of the slave temp directories and rendered from there.
It sounds like you were already copying the files into the Repository by added it as an auxiliary file. The Python render plugin should support running that if the “SceneFile=” doesn’t exist in the plugin info INI file.
Hi Edwin, Thanks for the reply.
Yeah I took a more detailed look at the python plugin and copied some functions across from there. I have made my script a Deadline plugin now and it is handling things better on the Deadline side.
I thought you had to specify the “SceneFile=” beforehand but when I took that out of the plugin.job file it picked up the correct auxiliary python script.