Adding a new slice to a scene

How would one go ahead adding a new slice to a scene?

I’ve tried:
VLA = slicer.mrmlScene.AddNewNodeByClass(“vtkMRMLSliceNode”)

but this crashes everytime.

I want to do this in order to create alternative views of the same volume - e.g. a long axis plane of a cardiac CT.

Thank you

Neil

Rather than create your own view nodes, you probably want to define a custom layout and then assign different volumes or views of volumes to be shown in the various slice views. The code linked below demonstrates how to control these things from python.