# Custom Transformation Matrix in Paraview

**URL:** https://discourse.paraview.org/t/custom-transformation-matrix-in-paraview/2906
**Category:** ParaView Support
**Created:** [November 5, 2019, 11:09am UTC](https://discourse.paraview.org/t/custom-transformation-matrix-in-paraview/2906 "2019-11-05T11:09:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Reshma](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@Reshma](https://discourse.paraview.org/u/Reshma)
#### Post date: [November 5, 2019, 11:09am UTC](https://discourse.paraview.org/t/custom-transformation-matrix-in-paraview/2906/1 "2019-11-05T11:09:43Z")

</div>

Dear All,  
I am dealing with medical data and I have to apply some custom 4x4 matrix transformation to the data (point Data as well as mesh) in paraview. Unfortunately, there is no built-in filter in paraview which can take our 4x4 matrix. I have found the following code snippet but could not merge it with inputs and connect to outputs in the plugin code.

```
>>> from paraview.simple import *
>>> from paraview import servermanager
>>> t = servermanager.CreateProxy("transforms", "Transform")
>>> tp = servermanager._getPyProxy(t)
>>> tp.Matrix=[1,0,0, 10,0,1,0,10, 0, 0, 1, 10, 0 ,0, 0, 1]
>>> a = Transform()
>>> a.Transform = tp

```

How can I apply the above transformation to an input input0 = vtk.vtkDataSet.GetData(inInfo[0]) and subsequently assign the output to the output port? Any hints?

Thanks, Reshma
