# Howto customize the position of the Interaction handles of a lineNode?

**URL:** <https://discourse.slicer.org/t/howto-customize-the-position-of-the-interaction-handles-of-a-linenode/23518>\
**Category:** Development\
**Tags:** python\
**Created:** [May 21, 2022, 1:21pm UTC](https://discourse.slicer.org/t/howto-customize-the-position-of-the-interaction-handles-of-a-linenode/23518 "2022-05-21T13:21:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [May 21, 2022, 1:21pm UTC](https://discourse.slicer.org/t/howto-customize-the-position-of-the-interaction-handles-of-a-linenode/23518/1 "2022-05-21T13:21:00Z")

</div>

By default the position of the Interaction handles on the lineNode is at the midpoint, but howto place the Interaction handles in a custom location?  
Like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/c/ccf1a8f71f41500d22cbfffe884cd0214d67e7ed.jpeg)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 23, 2022, 4:16am UTC](https://discourse.slicer.org/t/howto-customize-the-position-of-the-interaction-handles-of-a-linenode/23518/2 "2022-05-23T04:16:14Z")

</div>

Currently the handle position is always the center of gravity of all control points, implemented in `vtkMRMLMarkupsNode::UpdateInteractionHandleToWorldMatrix()` method. You can create a custom markups line node class, override this method in it, then register it as a custom markup.

If you don’t want to implement a custom markup then you can use two markups, one of them just displays the interaction handles (the control points are hidden by setting the glyph size to 0), and the other displays the control points. You would add observers to both nodes and keep the control point positions in the two nodes in sync.
