# Set view perpendicular to a Markup Line

**URL:** <https://discourse.slicer.org/t/set-view-perpendicular-to-a-markup-line/29153>\
**Category:** Support\
**Created:** [April 26, 2023, 8:59pm UTC](https://discourse.slicer.org/t/set-view-perpendicular-to-a-markup-line/29153 "2023-04-26T20:59:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahi2208](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@mahi2208](https://discourse.slicer.org/u/mahi2208)\
**Post date:** [April 26, 2023, 8:59pm UTC](https://discourse.slicer.org/t/set-view-perpendicular-to-a-markup-line/29153/1 "2023-04-26T20:59:11Z")

</div>

Hi,

I am relatively new to Slicer and not sure how to do thiis. Here is some background for what I am trying to do:

1. I draw a line using markupsLine to depict a possible path for a neurosurgical procedure.
2. I need to be able to set the view of the camera perpendicular to the line so that after doing that, the line essentially becomes like a point and I can move through slices to see if the line is interfering with the vessels.
3. If that happens, I should be able to move the point in either direction and do the view change again to make it perpendicular to that new point and repeat the process until no vessels are hit.

Please let me know if someone has faced this before and how to solve it. I am using Slicer version 4.11.20210226

---

<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:** [April 26, 2023, 9:03pm UTC](https://discourse.slicer.org/t/set-view-perpendicular-to-a-markup-line/29153/2 "2023-04-26T21:03:13Z")

</div>

The Path Explorer module in SlicerIGT extension implements this. Its user interface is a bit clunky (you need to add target point(s) and candiate entry point(s) and then create candidate paths from them, then enable/disable driving of each slice), so if you have trouble figuring out how it works then let us know.

Use the most recent Slicer Stable Release. Slicer-4.11 is really old, current version has many fixes and improvements.

---

<div class="post-metadata">

**Author:** ![mahi2208](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@mahi2208](https://discourse.slicer.org/u/mahi2208)\
**Post date:** [April 28, 2023, 6:19pm UTC](https://discourse.slicer.org/t/set-view-perpendicular-to-a-markup-line/29153/3 "2023-04-28T18:19:56Z")

</div>

Hi Andras,

Thanks for the quick reply! It worked and its exactly what I needed.

I will also update the Slicer version.

Thanks again!
