Hi
I want to leave a copy of the render nuke script in a hidden folder in the render folder e.g /server/shot/renderXYZ/.deadline/foo.nk
Best way to go about this?
Hi
I want to leave a copy of the render nuke script in a hidden folder in the render folder e.g /server/shot/renderXYZ/.deadline/foo.nk
Best way to go about this?
For every job? Probably an OnJobStarted() event. That’ll trigger every time the Slave starts a new job.
You’ll have to check if the “SceneFile” property is in the plugin info file, and if it’s missing, copy the first aux file. Nuke’s path mapping shows a good example of copying the scene (it does exactly that so the original scene file is left clean):
sceneFilename = self.deadlinePlugin.GetPluginInfoEntryWithDefault( "SceneFile", self.deadlinePlugin.GetDataFilename() )
sceneFilename = RepositoryUtils.CheckPathMapping( sceneFilename )
Then copy from “sceneFilename” to your .deadline folder.