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?
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
}
}
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
Copy link to clipboard
Copied
Thanks for your reply, it will help me, but r-bit's replay may be more concise.
Copy link to clipboard
Copied
No problem, I believed he come and give you good answer, but just in case he didn't you got some tips
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
}
}
Copy link to clipboard
Copied
Thank you very much, your idea is very goodļ¼