-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhue.json
More file actions
27 lines (27 loc) · 984 Bytes
/
Copy pathhue.json
File metadata and controls
27 lines (27 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"name": "Hue/Saturation Layer",
"description": "Adds a Hue/Saturation adjustment layer with specific values",
"actions": [
{
"name": "Add to Document",
"script": "addHueSaturationLayer"
}
],
"scripts": {
"addHueSaturationLayer": {
"script": [
"app.activeDocument.suspendHistory('Add Hue/Saturation Layer', function () {",
" var layer = app.activeDocument.artLayers.add();",
" layer.kind = LayerKind.HUESATURATION;",
" var desc = new ActionDescriptor();",
" var hueSat = new ActionDescriptor();",
" hueSat.putInteger(app.stringIDToTypeID('hue'), 42);",
" hueSat.putInteger(app.stringIDToTypeID('saturation'), 82);",
" hueSat.putInteger(app.stringIDToTypeID('lightness'), 4);",
" desc.putObject(app.stringIDToTypeID('hueSaturation'), app.stringIDToTypeID('hueSaturation'), hueSat);",
" app.executeAction(app.stringIDToTypeID('hueSaturationEvent'), desc, DialogModes.NO);",
"});"
]
}
}
}