Access to a loadable module from the python console

Hi everyone!

I am trying to create a scripted module using Sequences extension. I was wondering if, from the python console, there is a way to use a loadable module in the same way than a CLI (slicer.cli.run(slicer.modules.<cli-module-name>,parameters)), or if there is a way to access the interface in order to specify the inputs and click on the buttons in the same way than a scripted module (slicer.modules.<scripted-module-name>Widget) ?

Any help will be appreciated! Thanks in advance!
Laura

All classes of Sequences extension are available in Python. Sequence registration module is a good example showing how to create and manipulate sequences: https://github.com/moselhy/SlicerSequenceRegistration/blob/master/SequenceRegistration/SequenceRegistration.py

1 Like

Try this: Documentation/Nightly/Developers/Python scripting - Slicer Wiki

Thank you so much for your help. I managed to create a sequence and to run it by using the vtkMRMLSequenceNode and vtkMRMLSequenceBrowserNode classes ! I have unfortunately an issue about these particular classes, so I opened another topic here.