# Updating LUT file on adjustment layer

**URL:** <https://forums.creativeclouddeveloper.com/t/updating-lut-file-on-adjustment-layer/5227>\
**Category:** Photoshop\
**Tags:** javascript\
**Created:** [September 13, 2022, 7:43am UTC](https://forums.creativeclouddeveloper.com/t/updating-lut-file-on-adjustment-layer/5227 "2022-09-13T07:43:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blaz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/blaz/32/2162_2.png) [@Blaz](https://forums.creativeclouddeveloper.com/u/Blaz)\
**Post date:** [September 13, 2022, 7:43am UTC](https://forums.creativeclouddeveloper.com/t/updating-lut-file-on-adjustment-layer/5227/1 "2022-09-13T07:43:11Z")

</div>

Hey gang, I know there was a post around [importing lut file](http://forums.creativeclouddeveloper.com/t/import-3dlut-file/2723) but this one is related to changing a color lookup adjustment file. I’m trying to add a color lookup adjustment layer, then change it to a locally stored 3DLUT (in the plugin folder).

 ![CleanShot 2022-09-13 at 17.41.14@2x](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/7/77b47bc07476b578cea41b846fefca0eddf110c6.jpeg)

I’ve got the below in testing updating the 3DLUT layer file lookup to a default adobe one:

```auto
await require("photoshop").action.batchPlay([
       //Presume color lookup adjustment layer already added and is active layer
        {
            "_obj":"set",
            "_target":[
                {
                    "_ref":"adjustmentLayer",
                    "_enum":"ordinal",
                    "_value":"targetEnum"
                }
            ],
            "to":{
                "_obj":"colorLookup",
                "lookupType":{
                    "_enum":"colorLookupType",
                    "_value":"/Applications/Adobe Photoshop 2022/Presets/3DLUTs/DropBlues.3DL"
                },
                "name":"/Applications/Adobe Photoshop 2022/Presets/3DLUTs/DropBlues.3DL",
                "LUTFormat":{
                    "_enum":"LUTFormatType",
                    "_value":"LUTFormat3DL"
                },
                "LUT3DFileName":"/Applications/Adobe Photoshop 2022/Presets/3DLUTs/DropBlues.3DL"
            }
        }
    ], {"synchronousExecution": true, "modalBehavior": "execute",})

```

I get no love with no errors.

If I use the plugin record commands function in PS, it just spits out all the data in raw format with thousands of lines of codes, hardly useful is all.

Any help is appreciated.
