# Using GetCursorPositionRAS and ignore a model

**URL:** <https://discourse.slicer.org/t/using-getcursorpositionras-and-ignore-a-model/15045>\
**Category:** Development\
**Tags:** python\
**Created:** [December 14, 2020, 11:33am UTC](https://discourse.slicer.org/t/using-getcursorpositionras-and-ignore-a-model/15045 "2020-12-14T11:33:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@Niels](https://discourse.slicer.org/u/Niels)\
**Post date:** [December 14, 2020, 11:33am UTC](https://discourse.slicer.org/t/using-getcursorpositionras-and-ignore-a-model/15045/1 "2020-12-14T11:33:02Z")

</div>

I am using GetCursorPositionRAS on the vtkMRMLCrosshairNode singleton to get my mouse position when I am hitting a certain model. This works perfect.  
But now I would like to continuously display a stylus when hitting it. (with a certain colour, transparency, radius etc). For this I created a separate modelNode (sphere) and displayed it at the hit location.

But when the stylus is placed the next mouse hit will be the stylus itself. Can I ignore a certain model from the CrosshairNode? or should I display a stylus in another way?

---

<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:** [December 19, 2020, 7:06am UTC](https://discourse.slicer.org/t/using-getcursorpositionras-and-ignore-a-model/15045/2 "2020-12-19T07:06:07Z")

</div>

You can call `node.SetSelectable(False)` to exclude `node` from picking.
