#NEWLINE# def testPromotedArrayElementNodules( self ) : #NEWLINE# #INDENT# shader = self . compileShader ( os . path . expandvars ( '$GAFFER_ROOT/python/GafferRenderManTest/shaders/coshaderArrayParameters.sl' ) ) #NEWLINE# script = Gaffer . ScriptNode ( ) #NEWLINE# graphGadget = GafferUI . GraphGadget ( script ) #NEWLINE# script [ 'b' ] = Gaffer . Box ( ) #NEWLINE# script [ 'b' ] [ 's' ] = GafferRenderMan . RenderManShader ( ) #NEWLINE# script [ 'b' ] [ 's' ] . loadShader ( shader ) #NEWLINE# promotedCoshader = script [ 'b' ] . promotePlug ( script [ 'b' ] [ 's' ] [ 'parameters' ] [ 'fixedShaderArray' ] [ 0 ] ) #NEWLINE# nodeGadget = graphGadget . nodeGadget ( script [ 'b' ] ) #NEWLINE# self . assertEqual ( nodeGadget . noduleTangent ( nodeGadget . nodule ( promotedCoshader ) ) , IECore . V3f ( ( - 1 ) , 0 , 0 ) )