# About using the code of exporting a model with colors to Blender

**URL:** https://discourse.slicer.org/t/about-using-the-code-of-exporting-a-model-with-colors-to-blender/299
**Category:** Support
**Created:** [May 11, 2017, 12:37pm UTC](https://discourse.slicer.org/t/about-using-the-code-of-exporting-a-model-with-colors-to-blender/299 "2017-05-11T12:37:39Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 11, 2017, 2:25pm UTC](https://discourse.slicer.org/t/about-using-the-code-of-exporting-a-model-with-colors-to-blender/299/2 "2017-05-11T14:25:45Z")

</div>

I’ve fixed the obvious syntax errors (due to VTK library upgrades) in the [fiber tract export snippet](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Export_a_fiber_tracts_to_Blender.2C_including_color).

If you export generic models (not fiber tracts) then you can either [export the whole scene as VRML](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Export_entire_scene_as_VRML) or [export a colored model to ply](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Export_model_to_Blender.2C_including_color_by_scalar).

---

_[View the full topic](https://discourse.slicer.org/t/about-using-the-code-of-exporting-a-model-with-colors-to-blender/299)._
