def resetProfile():
 global settingsList
 for set in settingsList:
  if (not set.isProfile()):
   continue
  set.setValue(set.getDefault())
 if (getMachineSetting('machine_type') == 'ultimaker'):
  putProfileSetting('nozzle_size', '0.4')
  if (getMachineSetting('ultimaker_extruder_upgrade') == 'True'):
   putProfileSetting('retraction_enable', 'True')
 elif (getMachineSetting('machine_type') == 'ultimaker_plus'):
  putProfileSetting('nozzle_size', '0.4')
  putProfileSetting('retraction_enable', 'True')
 elif getMachineSetting('machine_type').startswith('ultimaker2'):
  putProfileSetting('nozzle_size', '0.4')
  putProfileSetting('retraction_enable', 'True')
 else:
  putProfileSetting('nozzle_size', '0.5')
  putProfileSetting('retraction_enable', 'True')

def resetProfile ( ) : global settingsList for set in settingsList : if ( not set . isProfile ( ) ) : continue set . setValue ( set . getDefault ( ) ) if ( getMachineSetting ( 'machine_type' ) == 'ultimaker' ) : putProfileSetting ( 'nozzle_size' , '0.4' ) if ( getMachineSetting ( 'ultimaker_extruder_upgrade' ) == 'True' ) : putProfileSetting ( 'retraction_enable' , 'True' ) elif ( getMachineSetting ( 'machine_type' ) == 'ultimaker_plus' ) : putProfileSetting ( 'nozzle_size' , '0.4' ) putProfileSetting ( 'retraction_enable' , 'True' ) elif getMachineSetting ( 'machine_type' ) . startswith ( 'ultimaker2' ) : putProfileSetting ( 'nozzle_size' , '0.4' ) putProfileSetting ( 'retraction_enable' , 'True' ) else : putProfileSetting ( 'nozzle_size' , '0.5' ) putProfileSetting ( 'retraction_enable' , 'True' )
reset the profile for the current machine to default .