# vtkMRMLAnnotationROINode

**URL:** <https://discourse.slicer.org/t/vtkmrmlannotationroinode/11405>\
**Category:** Support\
**Created:** [May 4, 2020, 6:23pm UTC](https://discourse.slicer.org/t/vtkmrmlannotationroinode/11405 "2020-05-04T18:23:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohan\_n](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rohan_n/32/78474_2.png) [@rohan\_n](https://discourse.slicer.org/u/rohan_n)\
**Post date:** [May 4, 2020, 6:23pm UTC](https://discourse.slicer.org/t/vtkmrmlannotationroinode/11405/1 "2020-05-04T18:23:24Z")

</div>

I’m looking at this link because my Python scripted module will have 2 or 3 vtkMRMLAnnotationROINode objects open at the same time and I would like them to be distinguishable from each other by line color and/or text label that is visible in the slicer window.  
[https://apidocs.slicer.org/master/classvtkMRMLAnnotationROINode.html#afaa9522ed4bc6fa5f3234f3787e1c517](https://apidocs.slicer.org/master/classvtkMRMLAnnotationROINode.html#afaa9522ed4bc6fa5f3234f3787e1c517)

**What is the correct form of the input for SetLineColor?** I tried  
r=slicer.vtkMRMLAnnotationROINode()  
r.SetLineColor([255,0,0]) and my module just crashed.

**Which function of vtkMRMLAnnotationROINode object would allow me to add a label for the ROI that can be seen in the slicer window, and what should its input look like?**  
SetLabelText didn’t appear to do anything.

Thanks,  
Rohan

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [May 4, 2020, 7:28pm UTC](https://discourse.slicer.org/t/vtkmrmlannotationroinode/11405/2 "2020-05-04T19:28:54Z")

</div>

Review this other forum post - [Is possible to change the color of the ROI bounding box from white to something else](https://discourse.slicer.org/t/is-possible-to-change-the-color-of-the-roi-bounding-box-from-white-to-something-else/10034/).

Setting ROI color isn’t a supported thing and fixes to annotation ROI won’t be fixed, but instead ROI objects will be moved into the new Markups module framework.
