Hi there, just a quick question about the customisation of pre-populating linear and angle measurements this way.
Would I be able to include the colour of the angle/line in the code? I tried to use L.SetColor() but never succeeded.
My current code looks like this:
G=getNode('hard tissue')
L=slicer.mrmlScene.AddNewNodeByClass('vtkMRMLMarkupsLineNode')
firstPoint = G.GetNthControlPointPositionVector(4)
L.AddControlPoint(firstPoint)
L.SetName('mastoid height R')
and for the angle: (2 prepopulated points, one by hand)
F=getNode('soft tissue')
H=getNode('EA R intersection')
A=slicer.mrmlScene.AddNewNodeByClass('vtkMRMLMarkupsAngleNode')
firstPoint = F.GetNthControlPointPositionVector(5)
A.AddControlPoint(firstPoint)
secondPoint = H.GetNthControlPointPositionVector(0)
A.AddControlPoint(secondPoint)
A.SetName('ear angle R')
Thank you again for your help!