JavaScripting HSB
Still new to all this.
I'm making script, and as a step I need to shift hue by set amount in recently opened document.
Like this:
Before, just opened

After hue shift +80

I tried to google it, but everything listed doesn't work for me. Currently I just use bit recorded with ScriptListener:
var idHStr = charIDToTypeID("HStr");
var desc5 = new ActionDescriptor();
var idpresetKind = stringIDToTypeID("presetKind");
var idpresetKindType = stringIDToTypeID("presetKindType");
var idpresetKindCustom = stringIDToTypeID("presetKindCustom");
desc5.putEnumerated(idpresetKind, idpresetKindType, idpresetKindCustom);
var idClrz = charIDToTypeID("Clrz");
desc5.putBoolean(idClrz, false);
var idAdjs = charIDToTypeID("Adjs");
var list1 = new ActionList();
var desc6 = new ActionDescriptor();
var idH = charIDToTypeID("H ");
desc6.putInteger(idH, 80);
var idStrt = charIDToTypeID("Strt");
desc6.putInteger(idStrt, 0);
var idLght = charIDToTypeID("Lght");
desc6.putInteger(idLght, 0);
var idHsttwo = charIDToTypeID("Hst2");
list1.putObject(idHsttwo, desc6);
desc5.putList(idAdjs, list1);
executeAction(idHStr, desc5, DialogModes.NO);
But that's too crude and hard to manage.
I know, that I must set SolidColor, like this:
var NewHue = new SolidColor();
NewHue.hsb.hue = 80;
But I cannot apply it. Well, app says I applied it, but no difference seen.
