Copy link to clipboard
Copied
This quick action is very useful, but assigning a shortcut key would make it easier and faster.
The "quick action" simply performs two steps, as indicated by the history panel:
You can create your own custom action, using the "Insert Menu Item" and then assign an F-key shortcut to the action.
Using a custom script, one can go a step further using Edit > Keyboard Shortcuts and assign a regular keycut (I don't like F-key ones as I often use a laptop).
Copy link to clipboard
Copied
*remove background
Copy link to clipboard
Copied
The "quick action" simply performs two steps, as indicated by the history panel:
You can create your own custom action, using the "Insert Menu Item" and then assign an F-key shortcut to the action.
Using a custom script, one can go a step further using Edit > Keyboard Shortcuts and assign a regular keycut (I don't like F-key ones as I often use a laptop).
Copy link to clipboard
Copied
Using a custom script, one can go a step further using Edit > Keyboard Shortcuts and assign a regular keycut (I don't like F-key ones as I often use a laptop).
By @Stephen Marsh
Here it is as a legacy .jsx for use in a custom keyboard shortcut (to be installed in the Presets/Scripts folder):
#target photoshop
if (app.documents.length != 0) {
// Active layer check by jazz-y
s2t = stringIDToTypeID;
(r = new ActionReference()).putProperty(s2t('property'), p = s2t('targetLayers'));
r.putEnumerated(s2t("document"), s2t("ordinal"), s2t("targetEnum"));
if (executeActionGet(r).getList(p).count) {
// Select subject
var idautoCutout = stringIDToTypeID("autoCutout");
var desc6 = new ActionDescriptor();
var idsampleAllLayers = stringIDToTypeID("sampleAllLayers");
desc6.putBoolean(idsampleAllLayers, false);
executeAction(idautoCutout, desc6, DialogModes.NO);
// Add layer mask
var idmake = stringIDToTypeID("make");
var desc213 = new ActionDescriptor();
var idnew = stringIDToTypeID("new");
var idchannel = stringIDToTypeID("channel");
desc213.putClass(idnew, idchannel);
var idat = stringIDToTypeID("at");
var ref13 = new ActionReference();
var idchannel = stringIDToTypeID("channel");
var idchannel = stringIDToTypeID("channel");
var idmask = stringIDToTypeID("mask");
ref13.putEnumerated(idchannel, idchannel, idmask);
desc213.putReference(idat, ref13);
var idusing = stringIDToTypeID("using");
var iduserMaskEnabled = stringIDToTypeID("userMaskEnabled");
var idrevealSelection = stringIDToTypeID("revealSelection");
desc213.putEnumerated(idusing, iduserMaskEnabled, idrevealSelection);
executeAction(idmake, desc213, DialogModes.NO);
} else {
alert('A layer must be active to run this script!');
}
} else {
alert('A document must be open to run this script!');
}
https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html
Find more inspiration, events, and resources on the new Adobe Community
Explore Now