# What is the "TRANSFORM EVENT"?

**URL:** <https://forums.creativeclouddeveloper.com/t/what-is-the-transform-event/7144>\
**Category:** UXP Plugin API\
**Created:** [November 21, 2023, 1:40pm UTC](https://forums.creativeclouddeveloper.com/t/what-is-the-transform-event/7144 "2023-11-21T13:40:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jessica](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jessica](https://forums.creativeclouddeveloper.com/u/jessica)\
**Post date:** [November 21, 2023, 11:45pm UTC](https://forums.creativeclouddeveloper.com/t/what-is-the-transform-event/7144/2 "2023-11-21T23:45:00Z")

</div>

Hi Taka,

From memory, I would have been using batchPlay that looked something like the example here, with the action being transform:

> [@Transforming the active layer via batchPlay() does nothing, returns no error messages](http://forums.creativeclouddeveloper.com/t/transforming-the-active-layer-via-batchplay-does-nothing-returns-no-error-messages/5779):
>
> Before asking this, I checked [here](http://forums.creativeclouddeveloper.com/t/layer-transformation-in-a-for-loop/4524/3) and [here](http://forums.creativeclouddeveloper.com/t/how-to-get-set-and-unset-layer-color/2281/9) to get an idea of how to construct things. It seems that, for a layer transformation to work via batchPlay(), I need to have the active layer selected (which I do), and I need to specify the target layer ID in the action descriptor. So I cast the action descriptor as a function return value: function eventTransformSelection(id, horiz = 0, vert = 0, scale = 100) { return { "\_obj": "transform", "\_target": [ { \_ref: "layer", …

You can get more info about events using something like the Alchemist plugin or using a listener function like that in the [batchPlay documentation](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/media/batchplay/)

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/what-is-the-transform-event/7144)._
