Segment editor effect sourceVolumeImageData not updated

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()