# ROI ,Crop volume

**URL:** <https://discourse.slicer.org/t/roi-crop-volume/6058>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [March 7, 2019, 12:06pm UTC](https://discourse.slicer.org/t/roi-crop-volume/6058 "2019-03-07T12:06:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prorai](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@prorai](https://discourse.slicer.org/u/prorai)\
**Post date:** [March 7, 2019, 12:06pm UTC](https://discourse.slicer.org/t/roi-crop-volume/6058/1 "2019-03-07T12:06:02Z")

</div>

How can i set ROI and Crop volume setting from python code?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [March 7, 2019, 8:48pm UTC](https://discourse.slicer.org/t/roi-crop-volume/6058/2 "2019-03-07T20:48:06Z")

</div>

Yes, all that you need is exposed via python and it should be the same as manipulating any other mrml nodes and calling module logics ([https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/CropVolume/Logic/vtkSlicerCropVolumeLogic.h#L65](https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/CropVolume/Logic/vtkSlicerCropVolumeLogic.h#L65))
