Hello,
I am using SlicerJupyter and I’m trying to use the interaction handle for the MarkupsLineNode to control the position and orientation of other objects. That part works fine with this kind of code:
implantlinenode = slicer.vtkMRMLMarkupsLineNode()
implantlinenode.SetName(‘Implant line’)
slicer.mrmlScene.AddNode(implantlinenode)
implantlinenode.AddControlPoint(0, 0, 0, ‘P0’)
implantlinenode.AddControlPoint(0, 10, 0, ‘P1’)
Ldn = implantlinenode.GetDisplayNode()
Ldn.SetVisibility2D(True)
Ldn.SetVisibility3D(True)
Ldn.SetHandlesInteractive(True)
handlematrix = implantlinenode.GetInteractionHandleToWorldMatrix()
However, I also need to update the InteractionHandle orientations programmatically based on the orientation of other objects.
How would I do this? I tried a transformation of the MarkupsLineNode but that does not change the orientation of the InteractionHandle.
Thanks for any ideas