Skip to main content
Participant
August 13, 2020
Question

Warning: No pixels are more than 50% selected. The selection edges will... - in actions and scripts

  • August 13, 2020
  • 2 replies
  • 433 views

hi, 

when I run cations and scripts, sometimes Photoshop warning me: 

Warning: No pixels are more than 50% selected. The selection edges will not be visible.

 

how can I turn it off?

 

Thanks,

 

This topic has been closed for replies.

2 replies

JJMack
Community Expert
Community Expert
August 13, 2020

I do not know if they can be turned off in an Action.  A script may be able to turn warning dialogs off with code like this.  I wrote may because I'm not positive.  Un cough errors will be displayed

 

 

var orig_display_dialogs = app.displayDialogs;
app.displayDialogs = DialogModes.NO;		// Set Dialogs off
try { code(); } // run your code
// display error message if something goes wrong
catch(e) { alert(e + ': on line ' + e.line, 'Script Error', true); }
app.displayDialogs = orig_display_dialogs;	// Reset display dialogs 

 

 

 

JJMack
Marja de Klerk
Inspiring
August 13, 2020

This warning usually comes up when the value of the Feather is more than 0% or when the selection takes place on a layer with transparant pixels.