# Custom default name for volume created from qMRMLNodeComboBox

**URL:** <https://discourse.slicer.org/t/custom-default-name-for-volume-created-from-qmrmlnodecombobox/5136>\
**Category:** Development\
**Created:** [December 18, 2018, 10:24pm UTC](https://discourse.slicer.org/t/custom-default-name-for-volume-created-from-qmrmlnodecombobox/5136 "2018-12-18T22:24:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emckenzi123](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@emckenzi123](https://discourse.slicer.org/u/emckenzi123)\
**Post date:** [December 18, 2018, 10:24pm UTC](https://discourse.slicer.org/t/custom-default-name-for-volume-created-from-qmrmlnodecombobox/5136/1 "2018-12-18T22:24:26Z")

</div>

Hello,

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,  
E

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 18, 2018, 10:42pm UTC](https://discourse.slicer.org/t/custom-default-name-for-volume-created-from-qmrmlnodecombobox/5136/2 "2018-12-18T22:42:44Z")

</div>

The syntax is `myCombobox.baseName='something'`

([https://apidocs.slicer.org/v4.8/classqMRMLNodeComboBox.html#a122b3eae788ad580c0dc73976ccd1bb1](https://apidocs.slicer.org/v4.8/classqMRMLNodeComboBox.html#a122b3eae788ad580c0dc73976ccd1bb1))

---

<div class="post-metadata">

**Author:** ![emckenzi123](https://avatars.discourse-cdn.com/v4/letter/e/f6c823/32.png) [@emckenzi123](https://discourse.slicer.org/u/emckenzi123)\
**Post date:** [December 19, 2018, 12:48am UTC](https://discourse.slicer.org/t/custom-default-name-for-volume-created-from-qmrmlnodecombobox/5136/3 "2018-12-19T00:48:31Z")

</div>

Thank you very much!
