# Set ColorNode at Colors Module

**URL:** <https://discourse.slicer.org/t/set-colornode-at-colors-module/12772>\
**Category:** Support\
**Created:** [July 29, 2020, 6:05pm UTC](https://discourse.slicer.org/t/set-colornode-at-colors-module/12772 "2020-07-29T18:05:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![siaeleni](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@siaeleni](https://discourse.slicer.org/u/siaeleni)\
**Post date:** [July 29, 2020, 6:05pm UTC](https://discourse.slicer.org/t/set-colornode-at-colors-module/12772/1 "2020-07-29T18:05:09Z")

</div>

Hi,

I want to set a color Node programmatically that I have created to the Colors Module in order to display it.  
I have created a node like this, but I am not sure how to set it to the Colors module.

> colorNode = slicer.vtkMRMLColorNode()  
> table = slicer.modules.colors.logic().CopyNode(colorNode, “rainbow”)  
> slicer.mrmlScene.AddNode(table)

Thanks
