I would like to set and control a linear transformation from python.
I created a linear transformation via the module GUI and then I changed a parameter (just to do a test).
If I run this code nothing changes in the GUI (I would expect a reset to an identity matrix):
t = slicer.mrmlScene.GetFirstNodeByName(“LinearTransform”)
m = vtk.vtkMatrix4x4()
Of course I am missing something!
Thanks a lot.