# set opacity using vtkLookupTable

**URL:** https://discourse.vtk.org/t/set-opacity-using-vtklookuptable/13094
**Category:** Development
**Tags:** code
**Created:** [January 18, 2024, 7:57am UTC](https://discourse.vtk.org/t/set-opacity-using-vtklookuptable/13094 "2024-01-18T07:57:32Z")
**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: [January 18, 2024, 7:57am UTC](https://discourse.vtk.org/t/set-opacity-using-vtklookuptable/13094/1 "2024-01-18T07:57:32Z")

</div>

I try to use one actor to draw a box with 6 colors, and set opacity 0.5 for one face,  
I am using setTableValue(index, double rgba[4]), but it is can’t work.  
if the opacity is 0 or 1, it works well.
