#NEWLINE# def __applyUserDefaults( graphComponent ) : #NEWLINE# #INDENT# if isinstance ( graphComponent , Gaffer . Plug ) : #NEWLINE# #INDENT# plugValue = Gaffer . Metadata . plugValue ( graphComponent , 'userDefault' ) #NEWLINE# if ( plugValue is not None ) : #NEWLINE# #INDENT# graphComponent . setValue ( plugValue ) #NEWLINE# #UNINDENT# #UNINDENT# for child in graphComponent . children ( ) : #NEWLINE# #INDENT# __applyUserDefaults ( child )