# Importing PLY file with color scale associated to a numerical "user scalar"

**URL:** <https://discourse.slicer.org/t/importing-ply-file-with-color-scale-associated-to-a-numerical-user-scalar/37543>\
**Category:** Support\
**Created:** [July 24, 2024, 12:33pm UTC](https://discourse.slicer.org/t/importing-ply-file-with-color-scale-associated-to-a-numerical-user-scalar/37543 "2024-07-24T12:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JiB](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@JiB](https://discourse.slicer.org/u/JiB)\
**Post date:** [July 24, 2024, 12:33pm UTC](https://discourse.slicer.org/t/importing-ply-file-with-color-scale-associated-to-a-numerical-user-scalar/37543/1 "2024-07-24T12:33:16Z")

</div>

Operating system: Windows 10 Enterprise  
Slicer version: 5.6.2  
Expected behavior: Display Colors Corresponding to Facet User Defined Values  
Actual behavior: No Color

Hi to the 3D Slicer community.

This post is in relation with [Importing PLY with Color](https://discourse.slicer.org/t/importing-ply-with-color/5500)

I have been struggling quite a lot trying to import a PLY file containing a model with a numerical (float32) “user scalar” (called “myscalar”) associated with each model’s facet into 3D Slicer.

The model is nicely displaying but I am trying without success to apply a color table corresponding to this scalar value.  
I even feel like my user scalar is not considered at all by 3D slicer.

What I managed to do is to correctly display colors for a given RGB triplet associated to each facet in the PLY file but, then, I find complicated to link back this color to my user scalar that I would like to be shown in the color legend.

Here is the header of my PLY file :

_ply_  
_format ascii 1.0_  
_element vertex 1576_  
_property float32 x_  
_property float32 y_  
_property float32 z_  
_element face 394_  
_property list uint8 int32 vertex\_indices_  
_property float32 **myscalar** _  
_end\_header_

Would anybody on this forum be so kind to help me displaying my model with a color scale corresponding to my user scalar variation through the model facet ?
