• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to disable the warning " No pixel is highlighted by more than 50%"?

Community Beginner ,
Feb 16, 2020 Feb 16, 2020

Copy link to clipboard

Copied

Hello everyone.

Tell me how I can disable the warning " Attention: No pixel is highlighted by more than 50%. The borders of the selected area will not be visible."during the execution of my script?

I tried to write at the beginning of the script 
app.displayDialogs = DialogModes.NO;
but it did not help.
TOPICS
Actions and scripting

Views

3.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Feb 17, 2020 Feb 17, 2020
This is a bug.
I will see what can be done later. Now there is no time.

For any other channels, except RGB, everything works.

Another bug occurs when you use (for any channel)
executeAction (idsetd, desc113, DialogModes.ALL);
Not sure that they will fix it.
 
If you set
var idRGB = stringIDToTypeID ("gray");

then Photoshops CS6 - CC2020 crashes !!
They definitely have to fix it!!!
 
EDIT:
If you need this selection to create a mask, it’s easier to use AppyImage to an already created mask.
 
EDIT: 27/02/2020
If
...

Votes

Translate

Translate
Adobe
People's Champ ,
Feb 18, 2021 Feb 18, 2021

Copy link to clipboard

Copied

Try not to make a selection from the path, but turn on the QuickMask mode, fill the path with the desired feather with black (or white depending on the QuickMask mode), turn the QuickMask into a selection.

 

Bingo! )

 

UPD. It doesn't seem to work, I was wrong. 

 

UPD2. Although I checked it manually and not with a script. In the script, it might work

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 18, 2021 Feb 18, 2021

Copy link to clipboard

Copied

That's good trick to retrieve original selection. I have for you another puzzle 😄

Fill new created document with 50% grey, then run your 4 steps script.

Enable QuickMask mode, and quit it. What warning do you see? 😛

 

Ps. you can do it by creating 1x1 pixel selection, enabling QM, filling with 50% opacity to quit it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 18, 2021 Feb 18, 2021

Copy link to clipboard

Copied

Try this setting for QuickMask.

 

xxx.jpg

 

In this case, even in manual mode, there are no messages (the 1x1 path must be filled with black and feather 2). 

In another mode, there will be a message (if done in manual mode) 

Now it is not possible to check different modes using a script.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 18, 2021 Feb 18, 2021

Copy link to clipboard

Copied

Yes, now it works. But I don't know in what another mode(s) you're talking?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 14, 2022 Apr 14, 2022

Copy link to clipboard

Copied

This errors with >

 

Dariusz1989_0-1649958144255.png

 

 

This is insane that in 2022 this is still not fixed ;[[[[ !!!!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 14, 2022 Apr 14, 2022

Copy link to clipboard

Copied

No problem for me in 23.3 when using this snippet (also with whole code). Attach your file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 14, 2022 Apr 14, 2022

Copy link to clipboard

Copied

Hmmm, just tweaked my code now and it started to run. Looks like I had to merge all layers together and then run the routine rather on them splitteed.

Yay!

Also ehhh, this will have a problem when I max out alpha channels count where I won't be able to make any more of them. How will I make my mask then? :- (((( 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 14, 2022 Apr 14, 2022

Copy link to clipboard

Copied

Maybe post some screenshots to let others easier understand what you mean 😉

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 15, 2022 Apr 15, 2022

Copy link to clipboard

Copied

Hey,
@Kukurykus I mean that when user max out alpha channel count > 

Dariusz1989_0-1650012130360.png

This script will fail. Thus adobe should fix that warning error :[[[[

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 15, 2022 Apr 15, 2022

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 26, 2020 Feb 26, 2020

Copy link to clipboard

Copied

Finally I managed to add a message. The solution is in the last message.
 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 02, 2021 Jul 02, 2021

Copy link to clipboard

Copied

Perhaps you know how to read whether Masked / Selected Areas are checked in Quick Mask Options?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jul 02, 2021 Jul 02, 2021

Copy link to clipboard

Copied

if (!app.activeDocument.quickMaskMode) app.activeDocument.quickMaskMode = true;

select_quick_mask();
alert(channel_color_indicates())

function select_quick_mask()
    {
    try { 
        var d = new ActionDescriptor();
        var r = new ActionReference();

        r.putName(stringIDToTypeID("channel"), "Quick Mask");
        d.putReference(stringIDToTypeID("null"), r);
        executeAction(stringIDToTypeID("select"), d, DialogModes.NO);

        var d = new ActionDescriptor();
        var r = new ActionReference();
        r.putEnumerated(stringIDToTypeID("channel"), stringIDToTypeID("channel"), stringIDToTypeID("RGB"));
        d.putReference(stringIDToTypeID("null"), r);
        executeAction(stringIDToTypeID("show"), d, DialogModes.NO);
        }
    catch (e) { throw(e); } 
    }

function channel_color_indicates()
    {
    try {
        var r = new ActionReference();
        r.putProperty(stringIDToTypeID("property"), stringIDToTypeID( "alphaChannelOptions" ) );
        r.putEnumerated(stringIDToTypeID("channel"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));

        var ret = executeActionGet(r).getObjectValue(stringIDToTypeID("alphaChannelOptions")).getEnumerationValue(stringIDToTypeID("colorIndicates"));

        if (ret == stringIDToTypeID("selectedAreas")) return true;

        return false;
        }
    catch (e) { throw(e); } 
    }

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 02, 2021 Jul 02, 2021

Copy link to clipboard

Copied

'alphaChannelOptions', so that was the property I was looking for, thx!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines