# is there any ways to save transformation matrix using command line?

**URL:** <https://discourse.slicer.org/t/is-there-any-ways-to-save-transformation-matrix-using-command-line/2647>\
**Category:** Support\
**Created:** [April 20, 2018, 1:42pm UTC](https://discourse.slicer.org/t/is-there-any-ways-to-save-transformation-matrix-using-command-line/2647 "2018-04-20T13:42:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xuec](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xuec/32/77755_2.png) [@xuec](https://discourse.slicer.org/u/xuec)\
**Post date:** [April 20, 2018, 1:42pm UTC](https://discourse.slicer.org/t/is-there-any-ways-to-save-transformation-matrix-using-command-line/2647/1 "2018-04-20T13:42:33Z")

</div>

Operating system:Windows 7  
Slicer version:4.2.2

I am doing BRAINSDemonWrap (command line), however I cannot find any output for transformation matrix, any suggestions how I could save the transformation matrix please?

I know we can save it if we do it manually (GUI version). Since I have a lot of files, I would like to do it in command line. Thank you.

---

<div class="post-metadata">

**Author:** ![xuec](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xuec/32/77755_2.png) [@xuec](https://discourse.slicer.org/u/xuec)\
**Post date:** [April 23, 2018, 6:51am UTC](https://discourse.slicer.org/t/is-there-any-ways-to-save-transformation-matrix-using-command-line/2647/2 "2018-04-23T06:51:50Z")

</div>

anyone please? I can get the displacements, but not the matrix when I used the command line scripting. Is there any way? Thank you.

---

<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 23, 2018, 1:37pm UTC](https://discourse.slicer.org/t/is-there-any-ways-to-save-transformation-matrix-using-command-line/2647/3 "2018-04-23T13:37:22Z")

</div>

See this example: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Save\_a\_node\_to\_file](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Save_a_node_to_file)

---

<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, 2018, 5:15pm UTC](https://discourse.slicer.org/t/is-there-any-ways-to-save-transformation-matrix-using-command-line/2647/4 "2018-04-26T17:15:06Z")

</div>

5 posts were split to a new topic: [How to split 4D volumes to individual 3D volumes?](https://discourse.slicer.org/t/how-to-split-4d-volumes-to-individual-3d-volumes/2707)
