# How to show models in certain views only

**URL:** <https://discourse.slicer.org/t/how-to-show-models-in-certain-views-only/8052>\
**Category:** Development\
**Created:** [August 16, 2019, 2:52am UTC](https://discourse.slicer.org/t/how-to-show-models-in-certain-views-only/8052 "2019-08-16T02:52:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SebastianE93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sebastiane93/32/3112_2.png) [@SebastianE93](https://discourse.slicer.org/u/SebastianE93)\
**Post date:** [August 16, 2019, 2:52am UTC](https://discourse.slicer.org/t/how-to-show-models-in-certain-views-only/8052/1 "2019-08-16T02:52:58Z")

</div>

Operating system: windows 10  
Slicer version: 4.10.2

At Models Module, in the section of Visibility,  
how can I change the View to only Red, Yellow and Green for a ModelNode (with the python console)?  
As shown in the picture below.

Thank you in advance!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/a/2ac1fea45d841111edd5221211d5c15db2a989c7.png)

---

<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:** [August 16, 2019, 5:09am UTC](https://discourse.slicer.org/t/how-to-show-models-in-certain-views-only/8052/2 "2019-08-16T05:09:38Z")

</div>

You can specify list of view IDs to show your node in using the display node’s SetViewNodeIDs method. See complete example [here](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Change_markup_fiducial_display_properties).

---

<div class="post-metadata">

**Author:** ![SebastianE93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sebastiane93/32/3112_2.png) [@SebastianE93](https://discourse.slicer.org/u/SebastianE93)\
**Post date:** [August 16, 2019, 2:46pm UTC](https://discourse.slicer.org/t/how-to-show-models-in-certain-views-only/8052/3 "2019-08-16T14:46:09Z")

</div>

Thank you! It works perfectly.
