# Display model with a "shiny" surface

**URL:** <https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927>\
**Category:** Development\
**Tags:** python, lightbox, display\
**Created:** [October 7, 2020, 6:46pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927 "2020-10-07T18:46:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aldoSanchez](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Post date:** [October 7, 2020, 6:46pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927/1 "2020-10-07T18:46:54Z")

</div>

hello  
Today I try to modify the brightness(Shiny material properties) of the modules  
but I found only one XML file  
and I don’t know how to access this code.

[https://github.com/Slicer/Slicer/search?q=shiny](https://github.com/Slicer/Slicer/search?q=shiny)

I just want to change the Preview

 ![shyni](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/d/7d0970289e8f9d8a1baaab3ab817643ff13180a6.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:** [October 7, 2020, 7:48pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927/2 "2020-10-07T19:48:51Z")

</div>

Display properties are stored in the [display node](http://apidocs.slicer.org/master/classvtkMRMLDisplayNode.html). For example, you can use [SetAmbient](http://apidocs.slicer.org/master/classvtkMRMLDisplayNode.html#a17b863f325bdb1c32edf488f932b9897), [SetDiffuse](http://apidocs.slicer.org/master/classvtkMRMLDisplayNode.html#ab75da4d3244c0c8705bb88629095a562), [SetSpecular](http://apidocs.slicer.org/master/classvtkMRMLDisplayNode.html#ab69c2a106a20855acce900fb65030862), and [SetPower](http://apidocs.slicer.org/master/classvtkMRMLDisplayNode.html#abe4ea8419ecb3de20963fa37719688b3) methods.

---

<div class="post-metadata">

**Author:** ![aldoSanchez](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Post date:** [October 7, 2020, 8:13pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927/3 "2020-10-07T20:13:06Z")

</div>

wow that works perfectly thanks  
I leave the code here:

```python
vtkRCC=getNode('Right-Cerebral-Cortex')

vtkRCC.GetDisplayNode().SetAmbient(.1)
vtkRCC.GetDisplayNode().SetDiffuse(.6)
vtkRCC.GetDisplayNode().SetSpecular(.5)
vtkRCC.GetDisplayNode().SetPower(40)

```

---

<div class="post-metadata">

**Author:** ![aldoSanchez](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Post date:** [October 8, 2020, 4:43pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927/4 "2020-10-08T16:43:48Z")

</div>

hello today i found a bug  
what i do is the following instruction  
vtkRCC.GetDisplayNode().ClippingOn()  
vtkRCC.GetDisplayNode().ClippingOff()  
and automatically changes the visible sides of  
Right-Cerebral-Cortex to all.  
but when I want to do it with the left side it doesn’t work  
I just want to use this instruction visible side all.

---

<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 8, 2020, 4:50pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927/5 "2020-10-08T16:50:40Z")

</div>

This is not a bug but a feature. If you clip a model then you need to show both frontface and backface of the model.

---

<div class="post-metadata">

**Author:** ![aldoSanchez](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Post date:** [October 8, 2020, 5:15pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927/6 "2020-10-08T17:15:33Z")

</div>

but it just aply to right side the left side is not changging

---

<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 8, 2020, 5:17pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927/7 "2020-10-08T17:17:27Z")

</div>

If you want to show both sides of a model then you can call [`BackfaceCullingOff()`](http://apidocs.slicer.org/master/classvtkMRMLDisplayNode.html#ae171c148f2a8fce408d2008fbd4645d8) method.

---

<div class="post-metadata">

**Author:** ![aldoSanchez](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Post date:** [October 8, 2020, 5:19pm UTC](https://discourse.slicer.org/t/display-model-with-a-shiny-surface/13927/8 "2020-10-08T17:19:29Z")

</div>

thank you that explains everything
