#NEWLINE# def testExpressions( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 'p' ] = GafferScene . Plane ( ) #NEWLINE# s [ 'g' ] = GafferScene . Group ( ) #NEWLINE# s [ 'g' ] [ 'in' ] [ 0 ] . setInput ( s [ 'p' ] [ 'out' ] ) #NEWLINE# s [ 'g' ] [ 'in' ] [ 1 ] . setInput ( s [ 'p' ] [ 'out' ] ) #NEWLINE# s [ 'g' ] [ 'in' ] [ 2 ] . setInput ( s [ 'p' ] [ 'out' ] ) #NEWLINE# s [ 'e' ] = Gaffer . Expression ( ) #NEWLINE# s [ 'e' ] . setExpression ( "parent['p']['dimensions']['x'] = 1 + context.getFrame() * 0.1" ) #NEWLINE# g = GafferSceneUI . SceneGadget ( ) #NEWLINE# g . setScene ( self [ 'g' ] [ 'out' ] ) #NEWLINE# g . bound ( )