Okay I found a solution. I can get the Node instead and then the image data. The node is updated.
sourceImageData = self.scriptedEffect.parameterSetNode().GetSourceVolumeNode().GetImageData()
Okay I found a solution. I can get the Node instead and then the image data. The node is updated.
sourceImageData = self.scriptedEffect.parameterSetNode().GetSourceVolumeNode().GetImageData()