# GetOutputPolyDataConnection() not working

**URL:** <https://discourse.slicer.org/t/getoutputpolydataconnection-not-working/2334>\
**Category:** Support\
**Tags:** python, file-export, 3d-model\
**Created:** [March 16, 2018, 12:16pm UTC](https://discourse.slicer.org/t/getoutputpolydataconnection-not-working/2334 "2018-03-16T12:16:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [March 16, 2018, 1:08pm UTC](https://discourse.slicer.org/t/getoutputpolydataconnection-not-working/2334/2 "2018-03-16T13:08:43Z")

</div>

Please see below (and in future, please copy/link the code you are running and output, to give people here enough context to explain errors).

> [@About using the code of exporting a model with colors to Blender](https://discourse.slicer.org/t/about-using-the-code-of-exporting-a-model-with-colors-to-blender/299/2):
>
> 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/getoutputpolydataconnection-not-working/2334)._
