Copy link to clipboard
Copied
hi all,
i want to create a hue/saturation adjustment layer.
i tried the following commands but failed:
app.activeDocument.artLayers.addAdjustment("Hue/Saturation");
app.activeDocument.layers.addAdjustment("Hue/Saturation");
please guide me the exact command.
I believe that you will need AM code for that:
var s2t = function (s) {
return app.stringIDToTypeID(s);
};
var descriptor = new ActionDescriptor();
var descriptor2 = new ActionDescriptor();
var reference = new ActionReference();
reference.putClass(s2t("contentLayer"));
descriptor.putReference(s2t("null"), reference);
descriptor2.putClass(s2t("type"), s2t("hueSaturation"));
descriptor.putObject(s2t("using"), s2t("contentLayer"), descriptor2);
executeAction(s2t("make"...
Copy link to clipboard
Copied
I believe that you will need AM code for that:
var s2t = function (s) {
return app.stringIDToTypeID(s);
};
var descriptor = new ActionDescriptor();
var descriptor2 = new ActionDescriptor();
var reference = new ActionReference();
reference.putClass(s2t("contentLayer"));
descriptor.putReference(s2t("null"), reference);
descriptor2.putClass(s2t("type"), s2t("hueSaturation"));
descriptor.putObject(s2t("using"), s2t("contentLayer"), descriptor2);
executeAction(s2t("make"), descriptor, DialogModes.NO);
Copy link to clipboard
Copied
thank you, it's work perfect.
Copy link to clipboard
Copied
You're welcome, happy to help.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now