# How to change the user's current selection

**URL:** <https://forums.creativeclouddeveloper.com/t/how-to-change-the-users-current-selection/1530>\
**Category:** UXP Plugin API\
**Tags:** selection, editcontext, javascript\
**Created:** [December 30, 2019, 7:45pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-change-the-users-current-selection/1530 "2019-12-30T19:45:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [December 30, 2019, 8:53pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-change-the-users-current-selection/1530/2 "2019-12-30T20:53:57Z")

</div>

Hi @thatgalnatalie,

first of all: welcome to the forums 👋.

It is only possible to select nodes that are inside the current edit context. This, unfortunately, [doesn’t include the parent node](https://adobexdplatform.com/plugin-docs/reference/core/edit-context.html#examples).

Cf. [Edit Context rules · Adobe XD Plugin Reference](https://adobexdplatform.com/plugin-docs/reference/core/edit-context.html?h=selection:)

> The **[edit context](https://adobexdplatform.com/plugin-docs/GLOSSARY.html#edit-context)** is the scope within which your plugin is allowed to make edits or set the selection. It is a “neighborhood” of [scenegraph](https://adobexdplatform.com/plugin-docs/GLOSSARY.html#scenegraph) nodes around the user’s current selection.

It is therefore, for now, not possible to achieve this.

Other topics that cover this:

- [Select (single) nodes outside the edit context programmatically](http://forums.creativeclouddeveloper.com/t/select-single-nodes-outside-the-edit-context-programmatically/571)
- [Selecting parent node returns Error: Cannot select node outside the current edit context's scope - #3 by Velara](http://forums.creativeclouddeveloper.com/t/selecting-parent-node-returns-error-cannot-select-node-outside-the-current-edit-contexts-scope/964/3)

I hope this helps (although it’s probably not the answer you were hoping for) 🙂,  
Happy coding,  
Pablo

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/how-to-change-the-users-current-selection/1530)._
