# Slider not responding to value

**URL:** <https://forums.creativeclouddeveloper.com/t/slider-not-responding-to-value/5719>\
**Category:** Photoshop\
**Created:** [January 19, 2023, 4:57pm UTC](https://forums.creativeclouddeveloper.com/t/slider-not-responding-to-value/5719 "2023-01-19T16:57:28Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Wanokuni](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/wanokuni/32/2203_2.png) [@Wanokuni](https://forums.creativeclouddeveloper.com/u/Wanokuni)\
**Post date:** [January 20, 2023, 6:37pm UTC](https://forums.creativeclouddeveloper.com/t/slider-not-responding-to-value/5719/7 "2023-01-20T18:37:32Z")

</div>

Here you go, this code will check if select layer is smart object and which filter is applied to it. You should use [Alchemist Plugin](https://github.com/jardicc/alchemist) it will save you a lot of time.

```auto
 const batchPlay = require("photoshop").action.batchPlay;
    const layerKind = app.activeDocument.layers[0].kind;
    if (layerKind === "smartObject") {

      const result = await batchPlay(
        [
          {
            _obj: "get",
            _target: [
              {
                _property: "smartObjectMore",
              },
              {
                _ref: "layer",
                _id: app.activeDocument.activeLayers[0]._id,
              },
              {
                _ref: "document",
                _id: app.activeDocument?.id,
              },
            ],
            _options: {
              dialogOptions: "dontDisplay",
            },
          },
        ],
        {}
      );

      const pinned = result[0].smartObjectMore.filterFX.filterFXList[0];
      console.log(pinned.filter);
    } else {
      // select layer is not a smart object
      require("photoshop").core.showAlert(
        "Please make sure the slected layer is a smart object"
      );
    }

```

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/slider-not-responding-to-value/5719)._
