Model slice intersection visibility - only on certain slice views

I have a 3D model that I would like to display as intersections on some 2D slice views, but hide it on another. I have a vtkMRMLModelNode called arteryModelNode:

arteryModelDisplayNode = arteryModelNode.GetModelDisplayNode()
arteryModelDisplayNode.SetSliceIntersectionVisibility(True)

Below is an image. I want the intersection to show on the Red, Green, and Yellow slices, but not on the grey one “S1”. Is there a way to do this?

Hi @mschumaker -

Yes, if you explicitly set the view node ids where you want a displayable to appear it won’t be shown in the others.

I don’t know if there’s a model slice intersection example, but here’s how it works for fiducials:

2 Likes

Thank you! That’s exactly what I was looking for.