# Batch Export API

**URL:** <https://forums.creativeclouddeveloper.com/t/batch-export-api/145>\
**Category:** UXP Plugin API\
**Created:** [September 26, 2018, 11:59pm UTC](https://forums.creativeclouddeveloper.com/t/batch-export-api/145 "2018-09-26T23:59:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![colourfulchris](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@colourfulchris](https://forums.creativeclouddeveloper.com/u/colourfulchris)\
**Post date:** [September 26, 2018, 11:59pm UTC](https://forums.creativeclouddeveloper.com/t/batch-export-api/145/1 "2018-09-26T23:59:43Z")

</div>

I might have missed this in the documentation.

Can I call in the API layers that have been set for Batch Export?

---

<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:** [September 27, 2018, 3:04am UTC](https://forums.creativeclouddeveloper.com/t/batch-export-api/145/2 "2018-09-27T03:04:29Z")

</div>

Not sure I follow here? @peterflynn Any thoughts?

---

<div class="post-metadata">

**Author:** ![peterflynn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/peterflynn/32/56_2.png) [@peterflynn](https://forums.creativeclouddeveloper.com/u/peterflynn)\
**Post date:** [September 27, 2018, 8:06am UTC](https://forums.creativeclouddeveloper.com/t/batch-export-api/145/3 "2018-09-27T08:06:48Z")

</div>

You can call `createRenditions()` with any nodes you want. So you can simply traverse the entire scenegraph tree to collect a list of all nodes where `markedForExport` is true, then request renditions of all those nodes.

There are lots of other ways a plugin might select which nodes needs renditions of (all artboards, for example; or all of the currently selected nodes), so `createRenditions()` is a very generic API that doesn’t make any assumptions about this.

---

<div class="post-metadata">

**Author:** ![colourfulchris](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@colourfulchris](https://forums.creativeclouddeveloper.com/u/colourfulchris)\
**Post date:** [September 27, 2018, 2:44pm UTC](https://forums.creativeclouddeveloper.com/t/batch-export-api/145/4 "2018-09-27T14:44:40Z")

</div>

@peterflynn Thank you sir. And thank you @kerrishotts for helping.

Here is my Plugin idea - XD to Web app - Layers that have been “Marked for Export” will export to the Web app when clicking on a link.

---

<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:** [September 27, 2018, 3:48pm UTC](https://forums.creativeclouddeveloper.com/t/batch-export-api/145/5 "2018-09-27T15:48:04Z")

</div>

That kind of use should definitely be possible. 🙂
