# Get Slice Thickness from vtkMRMLScalarVolumeNode

**URL:** <https://discourse.slicer.org/t/get-slice-thickness-from-vtkmrmlscalarvolumenode/980>\
**Category:** Development\
**Created:** [August 31, 2017, 4:30pm UTC](https://discourse.slicer.org/t/get-slice-thickness-from-vtkmrmlscalarvolumenode/980 "2017-08-31T16:30:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moselhy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/moselhy/32/501_2.png) [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Post date:** [August 31, 2017, 4:30pm UTC](https://discourse.slicer.org/t/get-slice-thickness-from-vtkmrmlscalarvolumenode/980/1 "2017-08-31T16:30:16Z")

</div>

How do I get Slice Thickness from a vtkMRMLScalarVolumeNode in 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:** [August 31, 2017, 4:48pm UTC](https://discourse.slicer.org/t/get-slice-thickness-from-vtkmrmlscalarvolumenode/980/2 "2017-08-31T16:48:23Z")

</div>

I guess you need this for shifting the slice view by a whole pixel in your segment editor effect. For this, you actually need the slice spacing from the slice view and not the slice spacing of the volume node (which may be arbitrarily oriented compared to the slice view plane). For this, you can use the [`qSlicerSegmentEditorAbstractEffect::sliceSpacing(sliceWidget)` method](http://apidocs.slicer.org/master/classqSlicerSegmentEditorAbstractEffect.html#a1b5cb12818e65c5dd54d4526d52f406e).
