This sample generates and exports a rendition of a selection, like an artboard or object, in XD as a PNG. It also demonstrates a simple way to clean up the DOM when a plugin's modal is closed.
Read the step-by-step guide for this sample.
- Select an object in an XD document
- Run Plugins > How to Export a Rendition
- Select the destination folder from the picker
- Get confirmation of save location in a modal dialog