# Clear rotation without actually rotate the object

**URL:** <https://forums.creativeclouddeveloper.com/t/clear-rotation-without-actually-rotate-the-object/935>\
**Category:** UXP Plugin API\
**Tags:** api-feedback\
**Created:** [June 24, 2019, 12:48pm UTC](https://forums.creativeclouddeveloper.com/t/clear-rotation-without-actually-rotate-the-object/935 "2019-06-24T12:48:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aldobsom](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@aldobsom](https://forums.creativeclouddeveloper.com/u/aldobsom)\
**Post date:** [June 24, 2019, 12:48pm UTC](https://forums.creativeclouddeveloper.com/t/clear-rotation-without-actually-rotate-the-object/935/1 "2019-06-24T12:48:23Z")

</div>

I’m trying to get rid of the global draw bound, especially to return to 0 degrees without actually rotating back the element. Is this possible? Cannot find this in the docs.

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

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [June 24, 2019, 12:51pm UTC](https://forums.creativeclouddeveloper.com/t/clear-rotation-without-actually-rotate-the-object/935/2 "2019-06-24T12:51:24Z")

</div>

All those bounds are derivative and not specificative (word?), so you’ll likely have to move/rotate it to where you want.

---

<div class="post-metadata">

**Author:** ![aldobsom](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@aldobsom](https://forums.creativeclouddeveloper.com/u/aldobsom)\
**Post date:** [June 24, 2019, 1:09pm UTC](https://forums.creativeclouddeveloper.com/t/clear-rotation-without-actually-rotate-the-object/935/3 "2019-06-24T13:09:28Z")

</div>

@cpryland: thanks for the answer, but we there is a good use case for the rotation to be cleared to 0 without actually rotating that shape. Otherwise it is sometimes very hard to obtain that exact rotation as with the rotation command. Not all objects need to be rotated from their center, so making a group with a box inside alows to achive the rotation around boxes’ center, for example in this case it’s impossible to manually position the tip of the triangle exactly to the border, like xd would do:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/8c6511f37f0114671937bfb2e47386aed7938392.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/a2b345449f499d5d1d4b450437557900c2d203b8.png)

PS: So a clear / apply rotation (i don’t know which is the correct term) is very necessary in some cases.

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [June 24, 2019, 7:51pm UTC](https://forums.creativeclouddeveloper.com/t/clear-rotation-without-actually-rotate-the-object/935/4 "2019-06-24T19:51:09Z")

</div>

In CSS this is called the [transform-origin](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin).

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/981eee3aecb12533c947b0b2209726da78b30f95.png)

I don’t think there is a way to change this with the API. I’ve changed your post into a feature request for **applying a rotation**.

This is an issue I’ve encountered for some plugins I’ve been working on and applying the rotation would solve some really tough problems.

---

<div class="post-metadata">

**Author:** ![aldobsom](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@aldobsom](https://forums.creativeclouddeveloper.com/u/aldobsom)\
**Post date:** [June 24, 2019, 7:55pm UTC](https://forums.creativeclouddeveloper.com/t/clear-rotation-without-actually-rotate-the-object/935/5 "2019-06-24T19:55:59Z")

</div>

@Velara I’m glad you did. It would be so easy to do a lot or transforming of there was a clear/apply indeed 🙂
