How to change the user's current selection

Hi @thatgalnatalie,

first of all: welcome to the forums :wave:.

It is only possible to select nodes that are inside the current edit context. This, unfortunately, doesn’t include the parent node.

Cf. Edit Context rules · Adobe XD Plugin Reference

The edit context is the scope within which your plugin is allowed to make edits or set the selection. It is a “neighborhood” of scenegraph nodes around the user’s current selection.

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

Other topics that cover this:

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

1 Like