# Set Visible in SetTableValue

**URL:** <https://discourse.vtk.org/t/set-visible-in-settablevalue/8563>\
**Category:** Development\
**Tags:** proposal\
**Created:** [May 24, 2022, 3:17am UTC](https://discourse.vtk.org/t/set-visible-in-settablevalue/8563 "2022-05-24T03:17:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ren](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Ren](https://discourse.vtk.org/u/Ren)\
**Post date:** [May 24, 2022, 3:17am UTC](https://discourse.vtk.org/t/set-visible-in-settablevalue/8563/1 "2022-05-24T03:17:10Z")

</div>

Hello， everyone， I met a problem  
I am using table value to render a actor,  
pColorTable-\>SetTableValue(0, r, g, b, 1.0);  
pColorTable-\>SetTableValue(1, r, g, b, 1.0);  
pColorTable-\>SetTableValue(2, r, g, b, 0.0);  
pColorTable-\>SetTableValue(3, r, g, b, 0.0);  
If some the visible in table value set to 1.0, the other set to 0.0, the shown object dislayed are transparent, if all the visible set to 1.0, it works well.  
How to solver the problem?

 ![无标题](https://discourse.vtk.org/uploads/default/original/2X/b/bbc35f762913d98fa06d110c58f25f7dfb8f3846.png)
