# Adjusment from the curve none visible when they are place

**URL:** https://forums.creativeclouddeveloper.com/t/adjusment-from-the-curve-none-visible-when-they-are-place/6747
**Category:** UXP Plugin API
**Created:** [August 30, 2023, 12:31am UTC](https://forums.creativeclouddeveloper.com/t/adjusment-from-the-curve-none-visible-when-they-are-place/6747 "2023-08-30T00:31:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![HimagenesPrint](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@HimagenesPrint](https://forums.creativeclouddeveloper.com/u/HimagenesPrint)
#### Post date: [August 30, 2023, 12:31am UTC](https://forums.creativeclouddeveloper.com/t/adjusment-from-the-curve-none-visible-when-they-are-place/6747/1 "2023-08-30T00:31:05Z")

</div>

Question and request - Please!

pressing control + shift on a curve marks the reference points but they are not visible in the adjustments property they are as if the curve has not been moved - please make changes to be able to capture the points.

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

as we can se no adjustments value  
adjustment: Array(1)  
1. presetKind: {\_enum: “presetKindType”, \_value: “presetKindDefault”}  
2. \_obj: “curves”  
3. [[Prototype]]: Object

1. length: 1

2. [[Prototype]]: Array(0)

3. [[Prototype]]: Object

bur if i move the points and its what i dont nedd to i will show

---

<div class="post-metadata">

### Author: ![shuji](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/shuji/32/4905_2.png) [@shuji](https://forums.creativeclouddeveloper.com/u/shuji)
#### Post date: [August 30, 2023, 9:49am UTC](https://forums.creativeclouddeveloper.com/t/adjusment-from-the-curve-none-visible-when-they-are-place/6747/2 "2023-08-30T09:49:25Z")

</div>

would you want to get adjustment layer property?  
if so, I could get on Photoshop 24.7 through the code below

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

async function actionCommands() {
   const result = await batchPlay(
      [
         {
            _obj: "get",
            _target: [
               {
                  _ref: "layer",
                  _id: 3// write layer id you want to get
               },
               {
                  _ref: "document",
                  _id: 59// write document id you want to get
               }
            ],
            _options: {
               dialogOptions: "dontDisplay"
            }
         }
      ],
      {}
   );
console.log(result);
}

async function runModalFunction() {
   await executeAsModal(actionCommands, {"commandName": "Action Commands"});
}

(async () => {
await runModalFunction();
})();

getting value here

/*
adjustment: Array(1)
0:
adjustment: Array(1)
0:
channel:
_enum: "channel"
_ref: "channel"
_value: "composite"
[[Prototype]]: Object
curve: Array(4)
0: {_obj: "paint", horizontal: 0, vertical: 0}
1: {_obj: "paint", horizontal: 122, vertical: 110}
2: {_obj: "paint", horizontal: 209, vertical: 209}
3: {_obj: "paint", horizontal: 255, vertical: 255}
length: 4
[[Prototype]]: Array(0)
_obj: "curvesAdjustment"
[[Prototype]]: Object
length: 1
[[Prototype]]: Array(0)
presetKind: {_enum: "presetKindType", _value: "presetKindCustom"}
_obj: "curves"
[[Prototype]]: Object
length: 1
[[Prototype]]: Array(0)
*/

```

but if you couldn’t see any value you want to, try the code below.

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

async function actionCommands() {
   const result = await batchPlay(
      [
         {
            _obj: "get",
            _target: [
               {
                  _property: "json"
               },
               {
                  _ref: "layer",
                  _id: 3// write layer id you want to get
               },
               {
                  _ref: "document",
                  _id: 59// write document id you want to get
               }
            ],
            _options: {
               dialogOptions: "dontDisplay"
            }
         }
      ],
      {}
   );
//this is JSON value. make sure parsing string value.
console.log(JSON.parse(result[0].json));
}

async function runModalFunction() {
   await executeAsModal(async () => await actionCommands(), {"commandName": "Action Commands"});
}

(async ()=>{
await runModalFunction();
})();
/*
bounds: {top: 0, left: 0, bottom: 900, right: 1200}
count: 0
depth: 8
file: "unknown"
generatorSettings: false
globalLight: {angle: 90, altitude: 30}
id: 59
layers: Array(1)
0:
adjustment:
adjustment: Array(1)
0:
channel: "composite"
curve: Array(4)
0: {horizontal: 0, vertical: 0}
1: {horizontal: 122, vertical: 110}
2: {horizontal: 209, vertical: 209}
3: {horizontal: 255, vertical: 255}
length: 4
[[Prototype]]: Array(0)
[[Prototype]]: Object
length: 1
[[Prototype]]: Array(0)
class: "curves"
presetKind: "presetKindCustom"
[[Prototype]]: Object
*/

```

layer has more values as a JSON property which contains adjustment value.

and I found it from a past topic.

[Adjustment Layer Getting Preset Kind](http://forums.creativeclouddeveloper.com/t/adjustment-layer-getting-preset-kind/4590/18)

---

<div class="post-metadata">

### Author: ![HimagenesPrint](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@HimagenesPrint](https://forums.creativeclouddeveloper.com/u/HimagenesPrint)
#### Post date: [August 30, 2023, 9:53pm UTC](https://forums.creativeclouddeveloper.com/t/adjusment-from-the-curve-none-visible-when-they-are-place/6747/3 "2023-08-30T21:53:49Z")

</div>

Thanks for answering!  
I had seen those links - and they are all proven - what I suggest is that: if the points are already captured by the function [Control + Shift] they should be visible in the adjustment[0].adjustments[0]; so that the - curve[0] - brings the channels.

The problem : only when the points are modified on the curve are they visible  
if not modified then adjusments.adjustments.curve will be with not channels array(0) .

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

if we don’t modify all you said comes like that:

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

Only when I modify the channels point it will bring the info

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

the data will come

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

---

<div class="post-metadata">

### Author: ![shuji](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/shuji/32/4905_2.png) [@shuji](https://forums.creativeclouddeveloper.com/u/shuji)
#### Post date: [August 31, 2023, 10:02am UTC](https://forums.creativeclouddeveloper.com/t/adjusment-from-the-curve-none-visible-when-they-are-place/6747/4 "2023-08-31T10:02:08Z")

</div>

sorry I’ve tried but I couldn’t find any way to get it.  
a curve has no effect on layer always returns empty property.  
even it has points on curve.  
if I could move any point even just one point, It could read points through batchPlay,  
but I don’t come up with anything now.

---

<div class="post-metadata">

### Author: ![AnthonyK](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@AnthonyK](https://forums.creativeclouddeveloper.com/u/AnthonyK)
#### Post date: [August 31, 2023, 7:02pm UTC](https://forums.creativeclouddeveloper.com/t/adjusment-from-the-curve-none-visible-when-they-are-place/6747/5 "2023-08-31T19:02:13Z")

</div>

I filed a bug report with Adobe about this on 19 May 2023: PS-111488
