# Setting LUT/ window and level from C++ CLI module

**URL:** <https://discourse.slicer.org/t/setting-lut-window-and-level-from-c-cli-module/16102>\
**Category:** Development\
**Created:** [February 20, 2021, 2:57am UTC](https://discourse.slicer.org/t/setting-lut-window-and-level-from-c-cli-module/16102 "2021-02-20T02:57:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cold-pac](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cold-pac/32/8593_2.png) [@cold-pac](https://discourse.slicer.org/u/cold-pac)\
**Post date:** [February 20, 2021, 2:57am UTC](https://discourse.slicer.org/t/setting-lut-window-and-level-from-c-cli-module/16102/1 "2021-02-20T02:57:27Z")

</div>

Is there any way to set the colors and window/level for a MRML display node produced by a C++ CLI module?

Can I access the MRML scene/vtkMRMLScalarVolumeDisplayNode?

Should I do this by creating a Python CLI module that calls the C++ CLI module and then sets the color of the outputted display node?

Thanks for your help!

---

<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:** [February 20, 2021, 4:19am UTC](https://discourse.slicer.org/t/setting-lut-window-and-level-from-c-cli-module/16102/2 "2021-02-20T04:19:54Z")

</div>

> [@cold-pac](#):
>
> Should I do this by creating a Python CLI module that calls the C++ CLI module and then sets the color of the outputted display node?

Exactly. Once you determined a good processing workflow, you can create a Python scripted module that implements that with a simple and convenient GUI.
