So I have sliders working perfectly outside of one issue. I need the value of sliders to remain in effect when I use another slider.
Example, I need to be able to adjust Blend If on the darks, and on the brights. Since we don’t have split sliders to my knowledge I’m curious how to go about this.
My thought is that I would implement multiple event listeners, I’m not sure how to do this.
document.getElementById("blendifdarkSlider").addEventListener("mouseup", evt => {
console.log(`blendIF value: ${evt.target.value}`);
batchPlay([
{
"_obj": "set",
"_target": [
{
"_ref": "layer",
"_enum": "ordinal",
"_value": "targetEnum"
}
],
"to": {
"_obj": "layer",
"blendRange": [
{
"_obj": "blendRange",
"channel": {
"_ref": "channel",
"_enum": "channel",
"_value": "red"
},
"srcBlackMin": 0,
"srcBlackMax": 0,
"srcWhiteMin": 255,
"srcWhiteMax": 255,
"destBlackMin": 0,
"destBlackMax": evt.target.value,
"destWhiteMin": 255,
"desaturate": 255
},
{
"_obj": "blendRange",
"channel": {
"_ref": "channel",
"_enum": "channel",
"_value": "grain"
},
"srcBlackMin": 0,
"srcBlackMax": 0,
"srcWhiteMin": 255,
"srcWhiteMax": 255,
"destBlackMin": 0,
"destBlackMax": evt.target.value,
"destWhiteMin": 255,
"desaturate": 255
},
],
"layerEffects": {
"_obj": "layerEffects",
"scale": {
"_unit": "percentUnit",
"_value": 200
}
}
},
"_isCommand": true
},
], {})
})