# Slicer Read Transform Content

**URL:** <https://discourse.slicer.org/t/slicer-read-transform-content/5736>\
**Category:** Development\
**Created:** [February 12, 2019, 6:12am UTC](https://discourse.slicer.org/t/slicer-read-transform-content/5736 "2019-02-12T06:12:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhenyu1995](https://avatars.discourse-cdn.com/v4/letter/z/47e85d/32.png) [@zhenyu1995](https://discourse.slicer.org/u/zhenyu1995)\
**Post date:** [February 12, 2019, 6:12am UTC](https://discourse.slicer.org/t/slicer-read-transform-content/5736/1 "2019-02-12T06:12:44Z")

</div>

Hello,

I am now writing a Slicer scripted module and I need to read only a certain element from a specified transform node. For example, I have transform node named “Transform1” and I just need to read the value of element of 3rd column from each row. How can this be done using python coding?

Thanks!

---

<div class="post-metadata">

**Author:** ![zhenyu1995](https://avatars.discourse-cdn.com/v4/letter/z/47e85d/32.png) [@zhenyu1995](https://discourse.slicer.org/u/zhenyu1995)\
**Post date:** [February 12, 2019, 7:12am UTC](https://discourse.slicer.org/t/slicer-read-transform-content/5736/2 "2019-02-12T07:12:42Z")

</div>

Sorry, there was a typo, I just want to read the values of 4th column from each transform. I have 8 (4x4) transform

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 12, 2019, 1:14pm UTC](https://discourse.slicer.org/t/slicer-read-transform-content/5736/3 "2019-02-12T13:14:06Z")

</div>

You can access the matrix and call GetElement like in this example:

[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get\_a\_notification\_if\_a\_transform\_is\_modified](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_a_notification_if_a_transform_is_modified)
