# Blend if parameters

**URL:** <https://forums.creativeclouddeveloper.com/t/blend-if-parameters/6060>\
**Category:** UXP Plugin API\
**Tags:** uxp, javascript\
**Created:** [March 18, 2023, 7:46pm UTC](https://forums.creativeclouddeveloper.com/t/blend-if-parameters/6060 "2023-03-18T19:46:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdophoto](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pdophoto/32/1304_2.png) [@pdophoto](https://forums.creativeclouddeveloper.com/u/pdophoto)\
**Post date:** [March 18, 2023, 7:46pm UTC](https://forums.creativeclouddeveloper.com/t/blend-if-parameters/6060/1 "2023-03-18T19:46:43Z")

</div>

I am making a vanilla plugin to control the layer style blend if parameters with a 4 handle slider.  
I need to get existing parameters from the active layer, but I can’t find any references the subject.  
It’s only a batchplay script but without references it’s impossible to write.  
It would be greatly appreciated if someone can help

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [March 18, 2023, 9:01pm UTC](https://forums.creativeclouddeveloper.com/t/blend-if-parameters/6060/2 "2023-03-18T21:01:30Z")

</div>

Try `json` property of layer. I think that is the only way now how to read it. It is not ideal.

```auto
const {batchPlay} = require("photoshop").action;

const result = await batchPlay(
   [
      {
         _obj: "get",
         _target: [
            {
               _property: "json"
            },
            {
               _ref: "layer",
               _id: 4
            },
            {
               _ref: "document",
               _id: 63
            }
         ],
         _options: {
            dialogOptions: "dontDisplay"
         }
      }
   ],
   {}
);

```

---

<div class="post-metadata">

**Author:** ![pdophoto](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pdophoto/32/1304_2.png) [@pdophoto](https://forums.creativeclouddeveloper.com/u/pdophoto)\
**Post date:** [March 19, 2023, 3:41pm UTC](https://forums.creativeclouddeveloper.com/t/blend-if-parameters/6060/3 "2023-03-19T15:41:39Z")

</div>

Thanks, I will try tomorrow

---

<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:** [March 31, 2024, 2:25pm UTC](https://forums.creativeclouddeveloper.com/t/blend-if-parameters/6060/4 "2024-03-31T14:25:24Z")

</div>

Hi,  
Did you find a way to get the values and set them?

---

<div class="post-metadata">

**Author:** ![pdophoto](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pdophoto/32/1304_2.png) [@pdophoto](https://forums.creativeclouddeveloper.com/u/pdophoto)\
**Post date:** [April 1, 2024, 3:08pm UTC](https://forums.creativeclouddeveloper.com/t/blend-if-parameters/6060/5 "2024-04-01T15:08:35Z")

</div>

Hi,  
To be blunt: NO! The reason was, I revised my project and this was not required. So this was abandenned.
