#NEWLINE# def _updateFromPlug( self ) : #NEWLINE# #INDENT# plug = self . getPlug ( ) #NEWLINE# valueChanged = ( plug . getInput ( ) is not None ) #NEWLINE# if ( ( not plug ) and isinstance ( plug , Gaffer . ValuePlug ) ) : #NEWLINE# #INDENT# with self . getContext ( ) : #NEWLINE# #INDENT# if Gaffer . NodeAlgo . hasUserDefault ( plug ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# valueChanged = ( not Gaffer . NodeAlgo . isSetToUserDefault ( plug ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# valueChanged = True #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# valueChanged = ( not plug . isSetToDefault ( ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# valueChanged = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# self . __setValueChanged ( valueChanged )