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()
getNode(‘P’).GetObjectToWorldMatrix(planeToWorld)
print(planeToWorld)
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
Thanks,
Yuan