# How to give different colors to a selection of facets

**URL:** https://discourse.paraview.org/t/how-to-give-different-colors-to-a-selection-of-facets/8940
**Category:** ParaView Support
**Tags:** vtk
**Created:** [February 9, 2022, 4:02pm UTC](https://discourse.paraview.org/t/how-to-give-different-colors-to-a-selection-of-facets/8940 "2022-02-09T16:02:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![SelmaBense](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@SelmaBense](https://discourse.paraview.org/u/SelmaBense)
#### Post date: [February 9, 2022, 4:02pm UTC](https://discourse.paraview.org/t/how-to-give-different-colors-to-a-selection-of-facets/8940/1 "2022-02-09T16:02:26Z")

</div>

Hello,

I work with a VTK file and want to display a selection of facets in different colors. When I run a selection I have only one color for all the facets.  
Do I need to attribute values (intensities) to the facets to be able to generate a colorbar? or is there a simpler way to do so by only selecting them?

Thank you in advance,

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 10, 2022, 8:34am UTC](https://discourse.paraview.org/t/how-to-give-different-colors-to-a-selection-of-facets/8940/2 "2022-02-10T08:34:58Z")

</div>

Can you facet be identified automatically ?

If not, then Select Manually, Extract Selection, Select Color, repeat.

If yes, then lets try doing that instead.

---

<div class="post-metadata">

### Author: ![SelmaBense](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@SelmaBense](https://discourse.paraview.org/u/SelmaBense)
#### Post date: [February 10, 2022, 12:41pm UTC](https://discourse.paraview.org/t/how-to-give-different-colors-to-a-selection-of-facets/8940/3 "2022-02-10T12:41:05Z")

</div>

Thank you for the solution. It worked by extracting the selection each time.

Is there any faster way if we already know the facets ids (changing only the colors at the end for exp) ? I guess this is what you meant by identified automatically ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 10, 2022, 10:42pm UTC](https://discourse.paraview.org/t/how-to-give-different-colors-to-a-selection-of-facets/8940/4 "2022-02-10T22:42:34Z")

</div>

Yes, just use a adapted color map.

---

<div class="post-metadata">

### Author: ![SelmaBense](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@SelmaBense](https://discourse.paraview.org/u/SelmaBense)
#### Post date: [February 15, 2022, 10:35am UTC](https://discourse.paraview.org/t/how-to-give-different-colors-to-a-selection-of-facets/8940/5 "2022-02-15T10:35:55Z")

</div>

Alright, thank you very much.
