# Adjust Window Label and choice a LUT for a vtkMRMLScalarVolumeNode

**URL:** <https://discourse.slicer.org/t/adjust-window-label-and-choice-a-lut-for-a-vtkmrmlscalarvolumenode/11154>\
**Category:** Support\
**Created:** [April 16, 2020, 3:05pm UTC](https://discourse.slicer.org/t/adjust-window-label-and-choice-a-lut-for-a-vtkmrmlscalarvolumenode/11154 "2020-04-16T15:05:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlucox](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xlucox/32/6381_2.png) [@xlucox](https://discourse.slicer.org/u/xlucox)\
**Post date:** [April 16, 2020, 3:05pm UTC](https://discourse.slicer.org/t/adjust-window-label-and-choice-a-lut-for-a-vtkmrmlscalarvolumenode/11154/1 "2020-04-16T15:05:58Z")

</div>

Hello everyone.

I’m trying to adjust the window label of a vtkMRMLScalarVolumeNode and to Apply it a Rainbow LUT.

I thought to use the object SetWindowLevelToVolumeProp() of the class volumerendering.logic(). The problem which I am facing is that this function takes as argument a vtkVolumeProperty and I don’t know how to get it from the vtkMRMLScalarVolumeNode.

I wonder also if it is possible to automatic adjust the window label.

Thank you very much.

---

<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:** [April 17, 2020, 4:42am UTC](https://discourse.slicer.org/t/adjust-window-label-and-choice-a-lut-for-a-vtkmrmlscalarvolumenode/11154/2 "2020-04-17T04:42:37Z")

</div>

You can [set colormap](http://apidocs.slicer.org/master/classvtkMRMLDisplayNode.html#aa08cd24eaceabdc9159d33702517c909) in the volume’s scalar volume display node.

The volume may also have a volume rendering display node, but that controls how 3D raycasting of the volume is performed and not related to what colormap is used for displaying the volume in slice views.
