# How to add folder in scene?

**URL:** https://discourse.slicer.org/t/how-to-add-folder-in-scene/29499
**Category:** Development
**Created:** [May 17, 2023, 2:09am UTC](https://discourse.slicer.org/t/how-to-add-folder-in-scene/29499 "2023-05-17T02:09:51Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [August 7, 2025, 10:41am UTC](https://discourse.slicer.org/t/how-to-add-folder-in-scene/29499/15 "2025-08-07T10:41:24Z")

</div>

The folders have a special folder display node, but it is only created when you show/hide it in the Data module (you’ll notice because the color item will appear in its row). In theory you can create it programmatically, but as I see that function is not python wrapped. This is the code:

```auto
pluginHandlerSingleton = slicer.qSlicerSubjectHierarchyPluginHandler.instance()
folderPlugin = pluginHandlerSingleton.pluginByName('Folder')
folderPlugin.createDisplayNodeForItem(folderItemID)

```

If you need to create the display node programmatically, there are two ways:

1. Do in Python what this `createDisplayNodeForItem` function does
2. Fix Python wrapping of the function

---

_[View the full topic](https://discourse.slicer.org/t/how-to-add-folder-in-scene/29499)._
