Attribute error when trying to get transform between two coords

Hello Slicer Community,

I created a simple plane P with 3 points and am hoping to get the transform between its coordinate system and the system default coord.

I tried this script:

planeToWorld = vtk.vtkMatrix4x4()

and got the error message saying “AttributeError: ‘vtkSlicerMarkupsModuleMRMLPython.vtkMRMLMarkupsPla’ object has no attribute ‘GetObjectToWorldMatrix’”. Any advice would be greatly appreciated!

Operating system: Windows 11
Slicer version: 4.11


Your Slicer version is several years old. It does not have the method you are looking for.

Thank you! I updated to v5.2.2 and the issue is solved.

1 Like