I’ve had a script we’ve used for Deadline 4 and 5 for moving Stitched Images for tile rendering, it’s not working on Deadline 6 and as there’s no error message it’s somewhat difficult to debug, any pointers please?
Rgds
D
[code]###############################################################
Imports
###############################################################
from System.Diagnostics import *
from System.IO import *
from System import TimeSpan
from Deadline.Events import *
from Deadline.Scripting import *
import re, sys, os, shutil
#import Draft
def GetDeadlineEventListener():
return MoveStitchedImages()
###############################################################
The Draft event listener class.
###############################################################
class MoveStitchedImages (DeadlineEventListener):
## This is called when the job finishes rendering.
def OnJobFinished( self, job ):
ClientUtils.LogText( "Checking job for repathing options..." )
for x in range(0,99):
try:
inputImage = GetPluginInfoEntry("InputImages" + str(x))
if inputImage != None:
#filter the '_tile_1x1_10x10_' out of the name
t = re.split("_", inputImage)
b = "_" + t[len(t) - 4] + "_" + t[len(t) - 3] + "_" + t[len(t) - 2] + "_"
theimage = inputImage.replace(b, "")
thepath = (os.path.split ((os.path.split(theimage))[0]))[0] + "\\" + (os.path.split (theimage))[1]
outFile = ((os.path.splitext(thepath))[0] + ".tga")
shutil.move(theimage, thepath)
#if there are no more files in the folder then lets delete it.
files = os.listdir((os.path.split(inputImage))[0])
if len(files) == 0:
shutil.rmtree((os.path.split(inputImage))[0])
except:
print "Finished moving Files"
[/code]