# Problem exporting Colorized tractography to PLY mesh

**URL:** https://discourse.slicer.org/t/problem-exporting-colorized-tractography-to-ply-mesh/9768
**Category:** SlicerDMRI
**Created:** [January 10, 2020, 2:41am UTC](https://discourse.slicer.org/t/problem-exporting-colorized-tractography-to-ply-mesh/9768 "2020-01-10T02:41:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tabildskov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tabildskov/32/6245_2.png) [@tabildskov](https://discourse.slicer.org/u/tabildskov)
#### Post date: [January 10, 2020, 2:41am UTC](https://discourse.slicer.org/t/problem-exporting-colorized-tractography-to-ply-mesh/9768/1 "2020-01-10T02:41:04Z")

</div>

Hello - While I can export the the tractography to a PLY mesh, the fiber bundle coloring does not always do what is expected. It always seems to color fibers by mean orientation not by segment orientation, not by tensor property (ColorOrientation, FractionalAnisotropy, Trace, etc.) It is possible that it is working fine but when I use the latest version of MeshLab 2016.12 the colors do not come through as expected. Is this a bug or am I just doing something wrong? FYI, I am more inclined to think it is me and I am missing a step or two. Thanks.

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [January 10, 2020, 7:41pm UTC](https://discourse.slicer.org/t/problem-exporting-colorized-tractography-to-ply-mesh/9768/2 "2020-01-10T19:41:44Z")

</div>

Hi - I haven’t played a lot with this, but from [a look at the code](https://github.com/SlicerDMRI/SlicerDMRI/blob/master/Modules/Scripted/TractographyExportPLY/TractographyExportPLY.py#L174-L203) it gets the scalar display mode from the line display (not the tube display as you might expect).

---

<div class="post-metadata">

### Author: ![tabildskov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tabildskov/32/6245_2.png) [@tabildskov](https://discourse.slicer.org/u/tabildskov)
#### Post date: [January 13, 2020, 8:40pm UTC](https://discourse.slicer.org/t/problem-exporting-colorized-tractography-to-ply-mesh/9768/3 "2020-01-13T20:40:51Z")

</div>

That makes a lot of sense and matches my experience. I was able to get colored lines to export fine.

Thank You Steve.
