# Model fixing in VR space

**URL:** <https://discourse.slicer.org/t/model-fixing-in-vr-space/4419>\
**Category:** Development\
**Created:** [October 16, 2018, 9:31pm UTC](https://discourse.slicer.org/t/model-fixing-in-vr-space/4419 "2018-10-16T21:31:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_pavi](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@M\_pavi](https://discourse.slicer.org/u/M_pavi)\
**Post date:** [October 16, 2018, 9:31pm UTC](https://discourse.slicer.org/t/model-fixing-in-vr-space/4419/1 "2018-10-16T21:31:46Z")

</div>

How do we fix the model in VR space without moving anywhere? IUsusally when we move the model using controllers we can move it. But I want to fix the model in the surface.

---

<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:** [October 16, 2018, 9:36pm UTC](https://discourse.slicer.org/t/model-fixing-in-vr-space/4419/2 "2018-10-16T21:36:11Z")

</div>

@cpinter could you add the node attribute name that controls movability to the [developer guide](https://github.com/KitwareMedical/SlicerVirtualReality/blob/master/DeveloperGuide.md)?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 16, 2018, 10:10pm UTC](https://discourse.slicer.org/t/model-fixing-in-vr-space/4419/3 "2018-10-16T22:10:01Z")

</div>

I updated the guide, see the bottom of the page.

Also I added a feature in the Data module where you can set this flag in the context menu of nodes and folders, but I think it’s not updated in the downloadable extension yet. I’ll do that very soon.

---

<div class="post-metadata">

**Author:** ![M\_pavi](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@M\_pavi](https://discourse.slicer.org/u/M_pavi)\
**Post date:** [October 16, 2018, 10:47pm UTC](https://discourse.slicer.org/t/model-fixing-in-vr-space/4419/4 "2018-10-16T22:47:27Z")

</div>

I tried but there is an error by saying " NameError: name ‘nodeLocked’ is not defined"

---

<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:** [October 16, 2018, 11:35pm UTC](https://discourse.slicer.org/t/model-fixing-in-vr-space/4419/5 "2018-10-16T23:35:52Z")

</div>

`nodeLocked` refers to a MRML node object. You can use `nodeLocked=getNode("My node")` to get a node object from node name.
