• 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 choose the right eventClass with notifiers?

Explorer ,
Mar 06, 2018 Mar 06, 2018

Copy link to clipboard

Copied

app.notifiersEnabled = true;

app.notifiers.add("Mk  ", new File("~/Documents/event.jsx"), "HdAl");

This is an event that I added, but it did not work when I started adding the hideAll mask.The eventFile is selected the brush tool ,There are many eventClass of this event,Is my choice of eventClass wrong?

TOPICS
Actions and scripting

Views

1.7K

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 , Mar 06, 2018 Mar 06, 2018

app.notifiersEnabled = true; 

app.notifiers.add("Mk  ", new File("~/Documents/event.jsx"), "Chnl"); 

// event.jsx

if (arguments[0].hasKey(charIDToTypeID("Usng")))

    {

    if (arguments[0].getEnumerationValue(charIDToTypeID("Usng")) == charIDToTypeID("HdAl"))

        {

        alert("Bingo!");

        // your main code here

        }

    }

Votes

Translate

Translate
Adobe
LEGEND ,
Mar 06, 2018 Mar 06, 2018

Copy link to clipboard

Copied

Wired, first time I was notified of somone's fresh topic though I had no any posts in and wasn't mentioned šŸ˜•

Now I'm going to sleep so I can't help, however I may give links to only 2 scripts I wrote that use notifiers.

I didn't do anything with notifiers from that time at all, anyway maybe that will be helpful:

Brush Rename Event  and Getting the name of the current brush preset

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
Explorer ,
Mar 07, 2018 Mar 07, 2018

Copy link to clipboard

Copied

Thanks for your reply, it will help me, but r-bit's replay may be more concise.

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 ,
Mar 07, 2018 Mar 07, 2018

Copy link to clipboard

Copied

LATEST

No problem, I believed he come and give you good answer, but just in case he didn't you got some tips

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 ,
Mar 06, 2018 Mar 06, 2018

Copy link to clipboard

Copied

app.notifiersEnabled = true; 

app.notifiers.add("Mk  ", new File("~/Documents/event.jsx"), "Chnl"); 

// event.jsx

if (arguments[0].hasKey(charIDToTypeID("Usng")))

    {

    if (arguments[0].getEnumerationValue(charIDToTypeID("Usng")) == charIDToTypeID("HdAl"))

        {

        alert("Bingo!");

        // your main code here

        }

    }

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
Explorer ,
Mar 07, 2018 Mar 07, 2018

Copy link to clipboard

Copied

Thank you very much, your idea is very goodļ¼

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