# How to make one model node unselectable

**URL:** <https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721>\
**Category:** Development\
**Created:** [February 9, 2023, 1:37pm UTC](https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721 "2023-02-09T13:37:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [February 9, 2023, 1:37pm UTC](https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721/1 "2023-02-09T13:37:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/7/f766c0b870a1cddbc338e8735fec1aa52859c386.png)  
when i move the fiducial point, i want to move the point on the suface of the head ,but when close to the tube,the point attach to the tube , is it possible to make the tube unselectable use code?  
i understand move the camera can solve these,this scene is a example , i need help to solve these problem use code to make the tube unattachable

---

<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:** [February 9, 2023, 4:23pm UTC](https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721/2 "2023-02-09T16:23:46Z")

</div>

You almost answered it yourself, as I think what you need to do is  
`tubeModelNode.SetSelectable(False)`  
to make the tube actor not be picked.

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [February 10, 2023, 1:09am UTC](https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721/3 "2023-02-10T01:09:28Z")

</div>

thank you pinter  
i have written tubeModelNode.SetSelectable(False)  
but the when i place the fiducial point in 3D view,the fiducial point still attach the surface of tubeModelNode

---

<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:** [February 10, 2023, 9:53am UTC](https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721/4 "2023-02-10T09:53:55Z")

</div>

I just tried this in Slicer 5.2.1 and if I call `SetSelectable(False)` on a model node it is not picked by fiducial placement.

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [February 10, 2023, 10:38am UTC](https://discourse.slicer.org/t/how-to-make-one-model-node-unselectable/27721/5 "2023-02-10T10:38:54Z")

</div>

i think i need to check my code , than you very much
