# Convert path anchor points to smooth?

**URL:** <https://forums.creativeclouddeveloper.com/t/convert-path-anchor-points-to-smooth/1070>\
**Category:** UXP Plugin API\
**Tags:** api-feedback\
**Created:** [July 22, 2019, 11:43am UTC](https://forums.creativeclouddeveloper.com/t/convert-path-anchor-points-to-smooth/1070 "2019-07-22T11:43:20Z")\
**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:** [July 22, 2019, 11:43am UTC](https://forums.creativeclouddeveloper.com/t/convert-path-anchor-points-to-smooth/1070/1 "2019-07-22T11:43:20Z")

</div>

Hi all, I am wondering if it’s possible to convert all the points of a path from **corner** (which is the default) to **smooth** (which can be done double-clicking on each individual point) by in a automatically manner.

Is there a way to achieve this via the plugin api? It doesn’t seem to exist this kind of info in the docs ☹

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

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [July 22, 2019, 2:40pm UTC](https://forums.creativeclouddeveloper.com/t/convert-path-anchor-points-to-smooth/1070/2 "2019-07-22T14:40:09Z")

</div>

This functionality is not exposed via the APIs. Path objects can be modified/created using the `pathData` property right now. If you would like an API for this functionality, please create a feature request or convert this topic to feature request so people can vote.

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [July 22, 2019, 4:13pm UTC](https://forums.creativeclouddeveloper.com/t/convert-path-anchor-points-to-smooth/1070/3 "2019-07-22T16:13:48Z")

</div>

Might be worth searching [npm](https://npmjs.com) to see if there’s a package that can smooth an SVG path. XD uses the SVG representation for `pathData`, so that might get you what you need.

---

<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:** [July 22, 2019, 4:56pm UTC](https://forums.creativeclouddeveloper.com/t/convert-path-anchor-points-to-smooth/1070/4 "2019-07-22T16:56:33Z")

</div>

@stevekwak made it as a feature. Love to see it in the API 🙂

---

<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:** [July 22, 2019, 6:27pm UTC](https://forums.creativeclouddeveloper.com/t/convert-path-anchor-points-to-smooth/1070/5 "2019-07-22T18:27:52Z")

</div>

@aldobsom I think you’re better off not requesting this as a feature, since there are literally thousands of different things you could do with the `pathData`, and this is just one of them.

Better to learn to massage `pathData` in general.
