# Using VTK Remote module in Python scripted Slicer module

**URL:** <https://discourse.slicer.org/t/using-vtk-remote-module-in-python-scripted-slicer-module/2617>\
**Category:** Development\
**Tags:** vtk\
**Created:** [April 17, 2018, 9:14pm UTC](https://discourse.slicer.org/t/using-vtk-remote-module-in-python-scripted-slicer-module/2617 "2018-04-17T21:14:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Post date:** [April 17, 2018, 9:14pm UTC](https://discourse.slicer.org/t/using-vtk-remote-module-in-python-scripted-slicer-module/2617/1 "2018-04-17T21:14:24Z")

</div>

There is a Remote VTK module (SplineDrivenImageSlicer) that I am hoping to use from a scripted module, and I’m wondering what the most straightforward way to accomplish this is. I would eventually like to make this extension available from the Extension Manager, and able to be used from a Slicer pre-built binary. Building VTKv9 with the CMake option Module\_SplineDrivenImageSlicer set to ON adds it to the vtk Python-wrapped library, and avoids any intermediary modules.

I guess my question is, do I need to create a loadable module as an intermediate step, or is there a way I can package a VTK Remote module into a scripted module in a simpler way?

---

<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:** [April 17, 2018, 9:18pm UTC](https://discourse.slicer.org/t/using-vtk-remote-module-in-python-scripted-slicer-module/2617/2 "2018-04-17T21:18:42Z")

</div>

I think SlicerVirtualReality extension uses a VTK remote module.

---

<div class="post-metadata">

**Author:** ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Post date:** [April 17, 2018, 9:59pm UTC](https://discourse.slicer.org/t/using-vtk-remote-module-in-python-scripted-slicer-module/2617/3 "2018-04-17T21:59:44Z")

</div>

Excellent, thank you. That’s a good example for how to fetch an external project and include it in a loadable module.

> <https://github.com/KitwareMedical/SlicerVirtualReality/blob/master/SuperBuild/External_OpenVR.cmake>
