Hi there!
I’m trying to use Volume reslice driver from python script ( since from console it works fine):
def onTransformImageClicked(self):
logic = ModuleLogic()
result = logic.transformationImage()
driver = slicer.vtkSlicerVolumeResliceDriverLogic() # .MODE_TRANSVERSE = 6
layoutManager = slicer.app.layoutManager()
redView = layoutManager.layoutLogic().GetViewNodes().GetItemAsObject(0)
driver.SetModeForSlice(6, redView)
driver.SetDriverForSlice('vtkMRMLScalarVolumeNode1', redView)
qt.QMessageBox.information(slicer.util.mainWindow(), 'Slicer Python', result)
And It just crashes without any error. I want to change following params (see image)
Any ideas what is wrong here?