#NEWLINE# def testImageOutput( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 'plane' ] = GafferScene . Plane ( ) #NEWLINE# s [ 'outputs' ] = GafferScene . Outputs ( ) #NEWLINE# s [ 'outputs' ] . addOutput ( 'beauty' , IECore . Display ( ( self . temporaryDirectory ( ) + '/test.####.tif' ) , 'tiff' , 'rgba' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# s [ 'outputs' ] [ 'in' ] . setInput ( s [ 'plane' ] [ 'out' ] ) #NEWLINE# s [ 'render' ] = GafferArnold . ArnoldRender ( ) #NEWLINE# s [ 'render' ] [ 'in' ] . setInput ( s [ 'outputs' ] [ 'out' ] ) #NEWLINE# s [ 'render' ] [ 'verbosity' ] . setValue ( 1 ) #NEWLINE# s [ 'render' ] [ 'fileName' ] . setValue ( ( self . temporaryDirectory ( ) + '/test.####.ass' ) ) #NEWLINE# s [ 'fileName' ] . setValue ( self . __scriptFileName ) #NEWLINE# s . save ( ) #NEWLINE# c = Gaffer . Context ( ) #NEWLINE# for i in range ( 1 , 4 ) : #NEWLINE# #INDENT# c . setFrame ( i ) #NEWLINE# with c : #NEWLINE# #INDENT# s [ 'render' ] [ 'task' ] . execute ( ) #NEWLINE# #UNINDENT# #UNINDENT# for i in range ( 1 , 4 ) : #NEWLINE# #INDENT# self . failUnless ( os . path . exists ( ( self . temporaryDirectory ( ) + ( '/test.%04d.tif' % i ) ) ) )