# How to fill color to the vtkMRMLAnnotationROINode?

**URL:** <https://discourse.slicer.org/t/how-to-fill-color-to-the-vtkmrmlannotationroinode/10150>\
**Category:** Support\
**Created:** [February 7, 2020, 5:56am UTC](https://discourse.slicer.org/t/how-to-fill-color-to-the-vtkmrmlannotationroinode/10150 "2020-02-07T05:56:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbuikr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbuikr/32/3899_2.png) [@tbuikr](https://discourse.slicer.org/u/tbuikr)\
**Post date:** [February 7, 2020, 5:56am UTC](https://discourse.slicer.org/t/how-to-fill-color-to-the-vtkmrmlannotationroinode/10150/1 "2020-02-07T05:56:15Z")

</div>

I have created a ROI box as following code

```auto
        import SampleData
        sampleDataLogic = SampleData.SampleDataLogic()
        self.delayDisplay("Getting MR Head Volume")
        mrHeadVolume = sampleDataLogic.downloadMRHead()

        # Create clipping ROI
        roiNode = slicer.vtkMRMLAnnotationROINode()
        roiNode.SetXYZ(36, 17, -10)
        roiNode.SetRadiusXYZ(25, 40, 65)
        roiNode.Initialize(slicer.mrmlScene)

```

I want to fill color to the roiNode (such as blue color). Is it possible to do it? I have found some methods but it does not work.

---

<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 7, 2020, 2:17pm UTC](https://discourse.slicer.org/t/how-to-fill-color-to-the-vtkmrmlannotationroinode/10150/2 "2020-02-07T14:17:03Z")

</div>

See how it is done in [Volume clip with ROI module](https://github.com/PerkLab/SlicerVolumeClip/blob/master/VolumeClipWithRoi/VolumeClipWithRoi.py) (in Volume Clip extension). Probably the simplest is to set values in a labelmap volume (and then if you want you can import that into a segmentation node).
