# Create plane perpendicular to MarkupsLine from 1º point

**URL:** <https://discourse.slicer.org/t/create-plane-perpendicular-to-markupsline-from-1-point/12349>\
**Category:** Support\
**Tags:** markups\
**Created:** [July 2, 2020, 10:06pm UTC](https://discourse.slicer.org/t/create-plane-perpendicular-to-markupsline-from-1-point/12349 "2020-07-02T22:06:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Post date:** [July 2, 2020, 10:06pm UTC](https://discourse.slicer.org/t/create-plane-perpendicular-to-markupsline-from-1-point/12349/1 "2020-07-02T22:06:42Z")

</div>

I have 2 points in a MarkupsLine and I want to align a model perpendicular to this line from 1º line point. i should like to have a slider to rotate model arround itself throw this custom axis and another slider to traslate model all over the line.  
Thanks on advance

---

<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:** [July 2, 2020, 11:56pm UTC](https://discourse.slicer.org/t/create-plane-perpendicular-to-markupsline-from-1-point/12349/2 "2020-07-02T23:56:09Z")

</div>

This [example in the script repository](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Rotate_a_node_around_a_specified_line) shows how to create a transform that rotates any node around a markups line. With slight modifications you can make it do exactly what you need (e.g., position the object at the line endpoint, etc).

These [programming tutorials](https://www.slicer.org/wiki/Documentation/Nightly/Training#PerkLab.27s_Slicer_bootcamp_training_materials) explain how to create a module with a GUI, such as node selectors for the line and model and a slider for controlling the rotation angle.
