# Can I show a VTK scence in 3d view?

**URL:** <https://discourse.slicer.org/t/can-i-show-a-vtk-scence-in-3d-view/11390>\
**Category:** Development\
**Created:** [May 3, 2020, 2:17pm UTC](https://discourse.slicer.org/t/can-i-show-a-vtk-scence-in-3d-view/11390 "2020-05-03T14:17:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [May 3, 2020, 2:17pm UTC](https://discourse.slicer.org/t/can-i-show-a-vtk-scence-in-3d-view/11390/1 "2020-05-03T14:17:06Z")

</div>

I created a scence with some meshes(2 layer,such as 1st:cube,2nd:cylinder) and pictures by import vtk in slicer, I want to show it in 3D view of slicer. Can I do it with python. Thanks!

---

<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 4, 2020, 3:19am UTC](https://discourse.slicer.org/t/can-i-show-a-vtk-scence-in-3d-view/11390/2 "2020-05-04T03:19:46Z")

</div>

You can load and display a mesh file in Slicer by calling:

```
slicer.modules.models.logic().AddModel("path/to/modelfile.stl")
```
