AWS Thinkbox Discussion Forums

Renaming jobsdata local folders

Can I set the local node temp folder names manually via the plug in scripts for the jobsdata folders, instead of the random string which is currently used? If possible, I can then pick up the part rendered files on job completion from each node.
Currently I get a string of folders named as such:-

C:\Users\DL_Slave\AppData\Local\Thinkbox\Deadline6\slave\R01\jobsData

Folders created within above, one per consecutive task:-
maxwellOutput_tempAOviN0
maxwellOutput_tempBoaBh0
maxwellOutput_tempdc7490
maxwellOutput_tempnnJjR0

It’s these four folders which I need to specify exact folder names, rather than the random string generated by Deadline.
I’m currently running build 18 Deadline Version: 6.0.0.51030 & FranticX Version: 2.0.0.50955

Tim.

You would have to change a line in the Maxwell.py plugin file. You’ll currently see this on line 95:

self.LocalTempDirectory = self.CreateTempDirectory( "maxwellOutput" )

This creates a temp directory in C:\Users\DL_Slave\AppData\Local\Thinkbox\Deadline6\slave\R01\jobsData with “maxwellOutput” as the folder’s prefix. You can just replace this with a hardcoded path to get the results you want.

Cheers,

  • Ryan

Hi Ryan,

So I would have the following:-

self.LocalTempDirectory = my_specified_folder_name

Is this correct?

Many thanks for your quick reply.

Tim.

Will this not run into issues with concurrent tasks though Ryan?

Cheers,

Tim.

Yes, this would cause problems with concurrent tasks. You could append the render thread number to your output folder though, since this is unique for each render thread in the slave.

self.LocalTempDirectory = my_specified_folder_name + str(self.GetThreadNumber())

Cheers,

  • Ryan

Hi Ryan,

line 95 now reads:-

self.LocalTempDirectory = "c:\temp\slaves" + str(self.GetThreadNumber())

It seems the extra string is not necessary unless each individual render thread is required to be in a unique folder. Concurrent tasks all render to the same MXI and output folder if the string is missing and still return the finished MXI for merging to the specified output folder as normal.

Thanks for your help.

Tim.

Privacy | Site terms | Cookie preferences