sampled colors in color range is not recorded by scripts
When i used color range ,the default selected model is highlight,but i used color range with sampled colors model by scripts in next time ,it stil show the result that is
highlight model.I dont konw why? please help ,thanks!
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
var desc1 = new ActionDescriptor();
desc1.putInteger(cTID('Fzns'), 80);
var desc2 = new ActionDescriptor();
desc2.putDouble(cTID('Lmnc'), 48.58);
desc2.putDouble(cTID('A '), -9.14);
desc2.putDouble(cTID('B '), -45.14);
desc1.putObject(cTID('Mnm '), cTID('LbCl'), desc2);
var desc3 = new ActionDescriptor();
desc3.putDouble(cTID('Lmnc'), 60.86);
desc3.putDouble(cTID('A '), -4.64);
desc3.putDouble(cTID('B '), -40.1);
desc1.putObject(cTID('Mxm '), cTID('LbCl'), desc3);
desc1.putInteger(sTID("colorModel"), 0);
executeAction(sTID('colorRange'), desc1, DialogModes.NO);
I try to add"desc1.putEnumerated(cTID('Clrs'), cTID('Clrs'), sTID("sampledColors"));"before in"desc1.putInteger(sTID("colorModel"), 0);",but it has error
