# Is there a way to manipulate the view rotation using the UXP API?

**URL:** <https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-manipulate-the-view-rotation-using-the-uxp-api/11394>\
**Category:** UXP Plugin API\
**Tags:** uxp\
**Created:** [September 4, 2025, 12:50pm UTC](https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-manipulate-the-view-rotation-using-the-uxp-api/11394 "2025-09-04T12:50:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaruhiSmith](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@HaruhiSmith](https://forums.creativeclouddeveloper.com/u/HaruhiSmith)\
**Post date:** [September 4, 2025, 12:50pm UTC](https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-manipulate-the-view-rotation-using-the-uxp-api/11394/1 "2025-09-04T12:50:20Z")

</div>

Hi everyone,

I’m working on a project and need to know if it’s possible to control or manipulate the view rotation (e.g., rotating the canvas/view) using the UXP API in Creative Cloud applications. Has anyone successfully implemented this or found relevant methods in the API documentation? Any guidance or examples would be greatly appreciated!

I only can rotate the layer by this code, but what I want to rotate is view, not layer

```auto
action.executeBatchPlay({
      _obj: "rotateEventEnum",
      angle: {
        _unit: "angleUnit",
        _value: e
      },
      _target: {
        _ref: "layer",
        _enum: "ordinal",
        _value: "targetEnum"
      }
    })

```

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![HaruhiSmith](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@HaruhiSmith](https://forums.creativeclouddeveloper.com/u/HaruhiSmith)\
**Post date:** [September 5, 2025, 9:50am UTC](https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-manipulate-the-view-rotation-using-the-uxp-api/11394/2 "2025-09-05T09:50:19Z")

</div>

The function I want to implement is something like the rotating tool.

Can anyone here help me?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/a/af800f939edd53966ed1c4bca613330569f7f9c7.jpeg)

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