# Transform Matrix calculated by GetMatrixTransformBetweenNodes

**URL:** <https://discourse.slicer.org/t/transform-matrix-calculated-by-getmatrixtransformbetweennodes/4069>\
**Category:** Development\
**Created:** [September 11, 2018, 3:42pm UTC](https://discourse.slicer.org/t/transform-matrix-calculated-by-getmatrixtransformbetweennodes/4069 "2018-09-11T15:42:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 11, 2018, 6:04pm UTC](https://discourse.slicer.org/t/transform-matrix-calculated-by-getmatrixtransformbetweennodes/4069/2 "2018-09-11T18:04:45Z")

</div>

GetMatrixTransformBetweenNodes() needs parent transform nodes of your nodes, so you need to use source.GetParentTransformNode() and target.GetParentTransformNode(). See details in this related post: [Transformation graph for quick calculation of concatenated transforms](https://discourse.slicer.org/t/transformation-graph-for-quick-calculation-of-concatenated-transforms/326/5?u=lassoan)

---

_[View the full topic](https://discourse.slicer.org/t/transform-matrix-calculated-by-getmatrixtransformbetweennodes/4069)._
