See examples in the script repository. You can get the slice normal from the SliceToRAS homogeneous transformation matrix (slice normal in the RAS coordinate system is the third column of the matrix).
1 Like