# Move in 3D lineWidget on resliceCursorWidget

**URL:** https://discourse.vtk.org/t/move-in-3d-linewidget-on-reslicecursorwidget/12253
**Category:** Web
**Created:** [September 7, 2023, 9:22am UTC](https://discourse.vtk.org/t/move-in-3d-linewidget-on-reslicecursorwidget/12253 "2023-09-07T09:22:02Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Javi-r](https://discourse.vtk.org/user_avatar/discourse.vtk.org/javi-r/32/4601_2.png) [@Javi-r](https://discourse.vtk.org/u/Javi-r)
#### Post date: [September 26, 2023, 10:04am UTC](https://discourse.vtk.org/t/move-in-3d-linewidget-on-reslicecursorwidget/12253/7 "2023-09-26T10:04:00Z")

</div>

I have managed to add LineWidget in ResliceCursorWidget in vtk.js V28 as follows:

```auto
const origin = resliceCursorWidget.getWidgetState().getCenter();
const planeNormal = resliceCursorWidget.getPlaneNormalFromViewType(xyzToViewType[obj.id]);
lineWidget.getManipulator().setWidgetOrigin(...origin);
lineWidget.getManipulator().setWidgetNormal(...planeNormal);

```

But when I add LineWidget in one of the views the other two are blocked and I can’t interact neither with ResliceCursorWidget nor with LineWidget in any of them, I can only interact in the view where I added LineWidget.  
I think it has something to do with grabFocus and releaseFocus but I’m not sure and I don’t know how to fix it.

---

_[View the full topic](https://discourse.vtk.org/t/move-in-3d-linewidget-on-reslicecursorwidget/12253)._
