# Extract centerline via python

**URL:** <https://discourse.slicer.org/t/extract-centerline-via-python/41631>\
**Category:** Development\
**Tags:** python, vmtk-centerline\
**Created:** [February 11, 2025, 3:32pm UTC](https://discourse.slicer.org/t/extract-centerline-via-python/41631 "2025-02-11T15:32:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurabc](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@laurabc](https://discourse.slicer.org/u/laurabc)\
**Post date:** [February 11, 2025, 3:32pm UTC](https://discourse.slicer.org/t/extract-centerline-via-python/41631/1 "2025-02-11T15:32:35Z")

</div>

I’ve come across several posts about this module, but I haven’t been able to get it working with a Python script. I want to extract the centerline of the aortic root and obtain orthogonal planes across the centerline for analysis. Could anyone point me to a tutorial or provide some example code that I can use as a guide?
