I am having trouble using the volume reslice driver module programmatically. For many loadble scripted modules, I am used to accessing their logic and widget classes by importing them e.g import MyModule or accessing them through slicer.modules.module_name.widgetRepresentation() typically help(...) is then sufficient to figure out how to use it.
For volume reslice driver, I have found the class slicer.vtkSlicerVolumeResliceDriverLogic. However, when I try to use some of its methods, slicer crashes. for example:
Typically the easiest is to create MRML nodes and set its properties. You can save the scene and look at the .mrml file to see what nodes are created and what properties are set.
Module logic classes observe all the nodes that are added to the scene, so you rarely have to call any logic functions (except sometimes there are some convenience functions in logic classes that can be useful). It should never be necessary to call module widget methods directly (the module widgets are meant to respond to scene changes and user actions on the GUI).