Custom default name for volume created from qMRMLNodeComboBox


I am writing my own python scripted loadable module, and I have a qMRMLNodeComboBox where the user is able to optionally choose to “Create a New Volume As…”. However, currently the default New Name is “Volume_”. I would like to customize this new name that is initially presented to the user. I have searched through the sourcecode and found that I can possibly set this default name using qMRMLNodeFactory.setBaseName (maybe?). Am I on the right track here? If so, how do I connect this to my combobox?

much appreciated,

The syntax is myCombobox.baseName='something'


1 Like

Thank you very much!

1 Like