#NEWLINE# def __init__( self , obj ) : #NEWLINE# #INDENT# if ( obj . type != 'EMPTY' ) : #NEWLINE# #INDENT# if ( ( obj . parent is None ) or ( obj . type != 'CAMERA' ) ) : #NEWLINE# #INDENT# raise ValueError ( ( '%s is not MMDCamera' % str ( obj ) ) ) #NEWLINE# #UNINDENT# obj = obj . parent #NEWLINE# #UNINDENT# if ( ( obj . type == 'EMPTY' ) and ( obj . mmd_type == 'CAMERA' ) ) : #NEWLINE# #INDENT# self . __emptyObj = obj #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( '%s is not MMDCamera' % str ( obj ) ) )