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

All classes of Sequences extension are available in Python. Sequence registration module is a good example showing how to create and manipulate sequences:

1 Like

Try this:

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.