# How can I set curve channel RGB values using batch play?

**URL:** <https://forums.creativeclouddeveloper.com/t/how-can-i-set-curve-channel-rgb-values-using-batch-play/7511>\
**Category:** UXP Plugin API\
**Created:** [February 8, 2024, 1:57pm UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-set-curve-channel-rgb-values-using-batch-play/7511 "2024-02-08T13:57:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karpiyon](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@karpiyon](https://forums.creativeclouddeveloper.com/u/karpiyon)\
**Post date:** [February 8, 2024, 1:57pm UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-set-curve-channel-rgb-values-using-batch-play/7511/1 "2024-02-08T13:57:46Z")

</div>

Hi,  
I am trying to set individual RGB curve data using batch play.  
With the curve I dropper, I CTRL+SHIFT + click the image to ‘lock’ the RGB points and then i try to enter the points, e.g. set the green to 180. (This value is picked up before)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/c/c192a00e6c677c2382f31f40138d1a2dc9f81ceb.png)

I ‘record’ the action using Alchemist but the values which I enter/chnage are not recorder.  
All I see in alchemist is this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/1/14f5827be42e990f4ac1e291a9fd15f745da128c.png)

Can I do this using batchplay? If yes what am I missing and how can I record the entire action?

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [February 8, 2024, 2:08pm UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-set-curve-channel-rgb-values-using-batch-play/7511/2 "2024-02-08T14:08:34Z")

</div>

You’re definitely looking at the wrong event. This is for the foreground color change.

---

<div class="post-metadata">

**Author:** ![karpiyon](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@karpiyon](https://forums.creativeclouddeveloper.com/u/karpiyon)\
**Post date:** [February 8, 2024, 2:35pm UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-set-curve-channel-rgb-values-using-batch-play/7511/3 "2024-02-08T14:35:21Z")

</div>

The set (color) is not a really set color - it is the i dropper of teh curve adjustment layer.  
That is all that is recorder.  
The changes to the green values in this case, are not recorder.  
How can i make Alchemist record them?  
I use the default settings/

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [February 8, 2024, 2:53pm UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-set-curve-channel-rgb-values-using-batch-play/7511/4 "2024-02-08T14:53:24Z")

</div>

OK, if you need it quickly I can only suggest from the top of my head, because my PC died and I won’t be able to check for sure anything at least for another week. Try recording a creation of new curves adjustment layer. IIRC I got the descriptor something like:

```auto
    {
        "_obj": "make",
        "_target": [{"_ref":"adjustmentLayer"}],
        "using": {
            "_obj":"adjustmentLayer",
            "name":"Layer name",
            "type": {
                "_obj": "curves",
                "presetKind": {
                    "_enum": "presetKindType",
                    "_value": "presetKindCustom"
                },
                "adjustment": [
                    {
                        "_obj": "curvesAdjustment",
                        "channel": {"_enum":"ordinal", "_ref":"channel", "_value":"targetEnum"},
                        "curve": [
                            {
                                "_obj": "paint",
                                "horizontal": 0,
                                "vertical": 0
                            },
                            {
                                "_obj": "paint",
                                "horizontal": 98,
                                "vertical": 0
                            },
                            {
                                "_obj": "paint",
                                "horizontal": 156,
                                "vertical": 255
                            },
                            {
                                "_obj": "paint",
                                "horizontal": 255,
                                "vertical": 255
                            }
                        ]
                    }
                ]
            }
        }
    }

```

So you would need to rewrite it to `set` instead of `make` and figure out how to adjust different channels.

Sorry, this is just a copy-paste from my plugin and don’t have means to actually try and check. If you have time, maybe someone will jump in and give a proper working solution

---

<div class="post-metadata">

**Author:** ![karpiyon](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@karpiyon](https://forums.creativeclouddeveloper.com/u/karpiyon)\
**Post date:** [February 8, 2024, 4:00pm UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-set-curve-channel-rgb-values-using-batch-play/7511/5 "2024-02-08T16:00:24Z")

</div>

Thanks,  
I believe I should be able to ‘record’ this myself like I did for many of my plugins.  
The thing is that It does not record changing those values.  
Perhaps I should enable something in Alchemist?
