# Python script using 3dSlicer functions.

**URL:** <https://discourse.slicer.org/t/python-script-using-3dslicer-functions/25939>\
**Category:** Development\
**Tags:** build, extensions-manager, python\
**Created:** [October 27, 2022, 5:00pm UTC](https://discourse.slicer.org/t/python-script-using-3dslicer-functions/25939 "2022-10-27T17:00:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas\_sd](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lucas_sd/32/17087_2.png) [@lucas\_sd](https://discourse.slicer.org/u/lucas_sd)\
**Post date:** [October 27, 2022, 5:00pm UTC](https://discourse.slicer.org/t/python-script-using-3dslicer-functions/25939/1 "2022-10-27T17:00:46Z")

</div>

Hi there,

I’m new using 3dslicer, and I wonder if I can work in python, put in same folder of the file some extensions and call them like functions. Its possible that?

I need to obtain the center line of a volume and I had success using the extension. I have other process that I already run in my python file, so I would like to integrate this last process to the others in my python environment.

Thanks!  
Lucas.

---

<div class="post-metadata">

**Author:** ![pll\_llq](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pll_llq/32/9408_2.png) [@pll\_llq](https://discourse.slicer.org/u/pll_llq)\
**Post date:** [October 27, 2022, 7:26pm UTC](https://discourse.slicer.org/t/python-script-using-3dslicer-functions/25939/2 "2022-10-27T19:26:49Z")

</div>

Hey 👋  
Have a look at the documentation related to creating extensions. It’s a very good starting point [Extensions — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html)
