# How to use in python SegmentEditor Logical Effect to intersect segments of a SegmentationNode

**URL:** <https://discourse.slicer.org/t/how-to-use-in-python-segmenteditor-logical-effect-to-intersect-segments-of-a-segmentationnode/3318>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [June 27, 2018, 3:26pm UTC](https://discourse.slicer.org/t/how-to-use-in-python-segmenteditor-logical-effect-to-intersect-segments-of-a-segmentationnode/3318 "2018-06-27T15:26:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarafv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarafv/32/1809_2.png) [@sarafv](https://discourse.slicer.org/u/sarafv)\
**Post date:** [June 27, 2018, 3:26pm UTC](https://discourse.slicer.org/t/how-to-use-in-python-segmenteditor-logical-effect-to-intersect-segments-of-a-segmentationnode/3318/1 "2018-06-27T15:26:23Z")

</div>

Hi,  
We need to intersect the segments of a Segmentation node to know the overlap volume between the segments.  
We want do that in python. Someone know how to do that with SegmetEditorLogicalEffect ?

---

<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:** [June 28, 2018, 12:42am UTC](https://discourse.slicer.org/t/how-to-use-in-python-segmenteditor-logical-effect-to-intersect-segments-of-a-segmentationnode/3318/2 "2018-06-28T00:42:04Z")

</div>

There are multiple options, they are all described here: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#How\_to\_run\_segment\_editor\_effects\_from\_a\_script](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#How_to_run_segment_editor_effects_from_a_script)
