Hot Link Python Script

Does anyone know of python script that activates hot-link mode between different windows/studies?

You’d just need to convert this code to python:

it’ll be something like

compositeNodes = slicer.util.getNodesByClass('vtkMRMLSliceCompositeNode')
for node in compositeNodes:
  node.SetHotLinkedControl(linked)
2 Likes

Thanks for the help!

This will automatically turn on hot link for all views in Python:

compositeNodes = slicer.util.getNodesByClass('vtkMRMLSliceCompositeNode')
for node in compositeNodes:
  node.SetHotLinkedControl(1)
  node.SetLinkedControl(1)
1 Like