#NEWLINE# def _record_camera_position( self , vtk_obj = None , event = None ) : #NEWLINE# #INDENT# 'Callback to record the camera position.' #NEWLINE# r = self . recorder #NEWLINE# if ( r is not None ) : #NEWLINE# #INDENT# state = self . _get_camera_state ( ) #NEWLINE# lcs = self . _last_camera_state #NEWLINE# if ( self != lcs ) : #NEWLINE# #INDENT# self . _last_camera_state = state #NEWLINE# sid = self . _script_id #NEWLINE# for ( key , value ) in state : #NEWLINE# #INDENT# r . record ( ( '%s.camera.%s = %r' % ( sid , key , value ) ) ) #NEWLINE# #UNINDENT# r . record ( ( '%s.camera.compute_view_plane_normal()' % sid ) ) #NEWLINE# r . record ( ( '%s.render()' % sid ) )