Hi, I want to center a certain volume in the 3D view. I tried
layoutManager = slicer.app.layoutManager()
threeDWidget = layoutManager.threeDWidget(0)
threeDView = threeDWidget.threeDView()
threeDView.resetFocalPoint()
in the scripted repository, but I have more than one nodes in the scene and I don’t want to delete them, so it doesn’t work. Does anyone have any idea how to do this?
You don’t need to delete the nodes that you don’t want to include in the center computation, just temporarily hide them (node.GetDisplayNode().SetVisibility(False)).
Hi Andras,
Thanks for your answer! I tried hiding them but it is still not at the center on the scene.
If I have more than one volumes, even if I hide the others, the volume still won’t be at the center on the scene.
What I want to know is how to center one specific volume while other volumes are still there.
Thanks!