# Interaccion with native and third-party nodes when selected in tree

**URL:** <https://forum.universal-robots.com/t/interaccion-with-native-and-third-party-nodes-when-selected-in-tree/4673>\
**Category:** URCaps SDK\
**Created:** [July 4, 2019, 6:10pm UTC](https://forum.universal-robots.com/t/interaccion-with-native-and-third-party-nodes-when-selected-in-tree/4673 "2019-07-04T18:10:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmartin](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@dmartin](https://forum.universal-robots.com/u/dmartin)\
**Post date:** [July 4, 2019, 6:10pm UTC](https://forum.universal-robots.com/t/interaccion-with-native-and-third-party-nodes-when-selected-in-tree/4673/1 "2019-07-04T18:10:17Z")

</div>

Hi you all bit-writters!

I find myself in the need to:

- Know what node is currently selected in the program tree
- Be able to identify and get this programNode instance
- Be able to configure it -in my case, just WayPoints and Mov nodes-.

This needs to be performed when the program is stopped, while the user is programming the robot.

- **Adding a marker interface to native and third-party nodes:** Among other ideas or leads to pull… I have used the _marker interface technique_ with some of my URCap nodes, so that I can identify some of them using _traverse_ and _ProgramNodeVisitor_.

Please, tell me any clue or idea you may have. Thanks a lot folks!!
