# How to setup the parameters in SetSliceToRASByNTP?

**URL:** <https://discourse.slicer.org/t/how-to-setup-the-parameters-in-setslicetorasbyntp/33192>\
**Category:** Support\
**Tags:** python\
**Created:** [December 4, 2023, 5:17am UTC](https://discourse.slicer.org/t/how-to-setup-the-parameters-in-setslicetorasbyntp/33192 "2023-12-04T05:17:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![derekcbr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/derekcbr/32/18793_2.png) [@derekcbr](https://discourse.slicer.org/u/derekcbr)\
**Post date:** [December 4, 2023, 5:17am UTC](https://discourse.slicer.org/t/how-to-setup-the-parameters-in-setslicetorasbyntp/33192/1 "2023-12-04T05:17:57Z")

</div>

I am trying to use plane matrix to control the green slice position and rotation.  
matrix\_transform = np.array([  
[1, 0, 0, 0.2],  
[0, 1, 0, 0.3],  
[0, 0, 1, 0.4],  
[0, 0, 0, 1]  
])  
How to use matrix to setup the parameters in SetSliceToRASByNTP? Do I need to use function to get the the normal of plane, also need to know the previous plane position as well? Thanks a lot.
