# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?page=26

[Latest](https://discourse.slicer.org/latest.md) · [Categories](https://discourse.slicer.org/categories.md) · [Tags](https://discourse.slicer.org/tags.md)

**Page:** 27

---

## [Custom undo/redo function for all process](https://discourse.slicer.org/t/custom-undo-redo-function-for-all-process/33601)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [January 3, 2024, 6:11pm UTC](https://discourse.slicer.org/t/custom-undo-redo-function-for-all-process/33601 "2024-01-03T18:11:25Z")

</div>

Hi all I am currently working on developing a custom program using 3D Slicer and have a question I’d like to discuss in here. We need for an undo-redo feature for all functions (including camera view adjustments). Upo…

---

## [Help with parameterNodeWrapper](https://discourse.slicer.org/t/help-with-parameternodewrapper/33582)

<div class="topic-metadata">

**Author:** [@jmhuie](https://discourse.slicer.org/u/jmhuie)\
**Replies:** 1\
**Last updated:** [January 3, 2024, 6:02am UTC](https://discourse.slicer.org/t/help-with-parameternodewrapper/33582 "2024-01-03T06:02:41Z")

</div>

I am trying to familiarize myself with using a parameterNodeWrapper to save parameters for my custom modules. Based on the documentation and analyzing the exampled scripted modules from the Extension Wizard, I have a gen…

---

## [Problem with debugging on Windows](https://discourse.slicer.org/t/problem-with-debugging-on-windows/33528)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Replies:** 1\
**Last updated:** [January 2, 2024, 10:45am UTC](https://discourse.slicer.org/t/problem-with-debugging-on-windows/33528 "2024-01-02T10:45:17Z")

</div>

I followed the debug instructions here and trying to debug my C++ extensions. However, I can never start it. It says cannot find python36.dll, but I’m using Slicer5.6.0 of which python version is 3.9, so there is no pyt…

---

## [Use of qt.Signal leads to a crash on exit](https://discourse.slicer.org/t/use-of-qt-signal-leads-to-a-crash-on-exit/8321)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 5\
**Last updated:** [December 30, 2023, 1:58pm UTC](https://discourse.slicer.org/t/use-of-qt-signal-leads-to-a-crash-on-exit/8321 "2023-12-30T13:58:42Z")

</div>

Recently, I have been investigating the source of a crash on exit. To reproduce the crash: ./Slicer --no-main-window --testing Notes: removing the connection to the closed signal object here in the DICOM module avoi…

---

## [Custom Build App Win11 VS 2022 Qt5.15.2 Error FindCTK.cmake](https://discourse.slicer.org/t/custom-build-app-win11-vs-2022-qt5-15-2-error-findctk-cmake/33554)

<div class="topic-metadata">

**Author:** [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Replies:** 0\
**Last updated:** [December 29, 2023, 10:51am UTC](https://discourse.slicer.org/t/custom-build-app-win11-vs-2022-qt5-15-2-error-findctk-cmake/33554 "2023-12-29T10:51:48Z")

</div>

Hi Everyone! I´m trying to build a Custom App with SlicerCustomAppTemplate in Windows 11 with VS 2022 and Qt5.15.2 and I get this error: CMake Error at CMakeLists.txt:890 (find\_package): 33\> By not providing “FindCTK.…

---

## [Installing Slicer extension from script](https://discourse.slicer.org/t/installing-slicer-extension-from-script/25241)

<div class="topic-metadata">

**Author:** [@Nadya\_Shusharina](https://discourse.slicer.org/u/Nadya_Shusharina)\
**Replies:** 5\
**Last updated:** [December 28, 2023, 8:22am UTC](https://discourse.slicer.org/t/installing-slicer-extension-from-script/25241 "2023-12-28T08:22:37Z")

</div>

Hello, I would like to build a Docker container with Slicer 5.0.2 r30822 linux-amd64, and with Slicer extensions installed. To do that, I am trying to have Slicer install extensions from a python script: emm = slicer.a…

---

## [Possible New Slicer Extension - DICOMToNRRDBatchProcessing](https://discourse.slicer.org/t/possible-new-slicer-extension-dicomtonrrdbatchprocessing/33284)

<div class="topic-metadata">

**Author:** [@amyers](https://discourse.slicer.org/u/amyers)\
**Replies:** 4\
**Last updated:** [December 26, 2023, 1:42pm UTC](https://discourse.slicer.org/t/possible-new-slicer-extension-dicomtonrrdbatchprocessing/33284 "2023-12-26T13:42:33Z")

</div>

Hi, I’m looking to contribute a new slicer extension that takes a DICOM directory of patients and outputs NRRD files for each patient’s series into a DICOM conforming folder hierarchy Patient/Study/Series. So, there’d b…

---

## [Extension configure error for Mac Os on cdash](https://discourse.slicer.org/t/extension-configure-error-for-mac-os-on-cdash/33503)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 0\
**Last updated:** [December 22, 2023, 7:28pm UTC](https://discourse.slicer.org/t/extension-configure-error-for-mac-os-on-cdash/33503 "2023-12-22T19:28:24Z")

</div>

Hi, cdash is reporting a configure error for ExtraMarkups extension for Mac. This concerns Slicer stable only, while the extension builds for preview. Imported target "MRMLCore" includes non-existent path "/Appl…

---

## [Screen-space ambient occlusion for volume rendering](https://discourse.slicer.org/t/screen-space-ambient-occlusion-for-volume-rendering/32323)

<div class="topic-metadata">

**Author:** [@LucasGandel](https://discourse.slicer.org/u/LucasGandel)\
**Replies:** 49\
**Last updated:** [December 19, 2023, 4:34pm UTC](https://discourse.slicer.org/t/screen-space-ambient-occlusion-for-volume-rendering/32323 "2023-12-19T16:34:56Z")

</div>

The goal of this topic is to track the feasibility and interest for implementing SSAO for volume rendering in VTK / 3DSlicer. As highlighted by @lassoan in this post, SSAO for volumes could be a game-changer especially …

---

## [PythonQt unnamed \`typedef\` build warning](https://discourse.slicer.org/t/pythonqt-unnamed-typedef-build-warning/33501)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 0\
**Last updated:** [December 22, 2023, 1:06pm UTC](https://discourse.slicer.org/t/pythonqt-unnamed-typedef-build-warning/33501 "2023-12-22T13:06:43Z")

</div>

Hi, I am wondering about the plans to update the PythonQt version so that the below warning can be removed from all builds, including the extensions: D:\\D\\P\\S-0-build\\CTK-build\\CMakeExternals\\Install\\include\\PythonQt\\P…

---

## [Binded with PythonQt class not visible on Linux but visible on Windows (SlicerCAT)](https://discourse.slicer.org/t/binded-with-pythonqt-class-not-visible-on-linux-but-visible-on-windows-slicercat/33493)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 1\
**Last updated:** [December 22, 2023, 10:51am UTC](https://discourse.slicer.org/t/binded-with-pythonqt-class-not-visible-on-linux-but-visible-on-windows-slicercat/33493 "2023-12-22T10:51:16Z")

</div>

Hi, Among many classes that are successivle binded with PythonQt and accessible from python there are few that are binded but not accessible on Linux even though there are accessible on Windows. For example there is a …

---

## [Handling Slicer Close Event During MorphoSourceImport Module Download](https://discourse.slicer.org/t/handling-slicer-close-event-during-morphosourceimport-module-download/33474)

<div class="topic-metadata">

**Author:** [@oothomas](https://discourse.slicer.org/u/oothomas)\
**Replies:** 5\
**Last updated:** [December 22, 2023, 3:47am UTC](https://discourse.slicer.org/t/handling-slicer-close-event-during-morphosourceimport-module-download/33474 "2023-12-22T03:47:07Z")

</div>

Hello, I’m currently working with the MorphoSourceImport module in SlicerMorph, which utilizes a separate QProcess to download data. I’ve encountered a scenario where a user might try to close 3D Slicer while a download…

---

## [Make close (solid) mesh in 3D Slicer](https://discourse.slicer.org/t/make-close-solid-mesh-in-3d-slicer/33486)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 0\
**Last updated:** [December 21, 2023, 11:00am UTC](https://discourse.slicer.org/t/make-close-solid-mesh-in-3d-slicer/33486 "2023-12-21T11:00:25Z")

</div>

Hello all, I am working on creating an implant guide with Slicer. The issue I’m facing is closing an open dental scan mesh, as shown in the picture. I tried using vtkfillholefilter (surface-toolbox fill holes), but …

---

## [Can't get my extension's icon to appear](https://discourse.slicer.org/t/cant-get-my-extensions-icon-to-appear/33343)

<div class="topic-metadata">

**Author:** [@Justin\_Kirby](https://discourse.slicer.org/u/Justin_Kirby)\
**Replies:** 6\
**Last updated:** [December 18, 2023, 1:57pm UTC](https://discourse.slicer.org/t/cant-get-my-extensions-icon-to-appear/33343 "2023-12-18T13:57:19Z")

</div>

I’ve tried editing the following files to specify the location of the icon for TCIABrowser, but Slicer still shows the default puzzle icon in the menus: https://github.com/Slicer/ExtensionsIndex/blob/main/TCIABrowser.s…

---

## [Showing totally different content in different views](https://discourse.slicer.org/t/showing-totally-different-content-in-different-views/1342)

<div class="topic-metadata">

**Author:** [@jdx-john](https://discourse.slicer.org/u/jdx-john)\
**Replies:** 3\
**Last updated:** [December 16, 2023, 11:09am UTC](https://discourse.slicer.org/t/showing-totally-different-content-in-different-views/1342 "2023-12-16T11:09:22Z")

</div>

As a newbie to Slicer Dev, I’m interested how view content is managed. We’re interested in having several standard views showing DICOM data but one view showing only some 3D models and other non-DICOM content. Behind th…

---

## [Can I add an "additional module path" with python code](https://discourse.slicer.org/t/can-i-add-an-additional-module-path-with-python-code/6189)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 3\
**Last updated:** [December 15, 2023, 8:50am UTC](https://discourse.slicer.org/t/can-i-add-an-additional-module-path-with-python-code/6189 "2023-12-15T08:50:12Z")

</div>

Can I restart 3d slicer and add an “additional module path” with python code.

---

## [How can I redirect std::cout to Python Interactor?](https://discourse.slicer.org/t/how-can-i-redirect-std-cout-to-python-interactor/33378)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Replies:** 2\
**Last updated:** [December 13, 2023, 9:52am UTC](https://discourse.slicer.org/t/how-can-i-redirect-std-cout-to-python-interactor/33378 "2023-12-13T09:52:40Z")

</div>

I’m developing a C++ extension and there are lots of output messages using “std::cout”. However, I can only see these messages when slicer started from terminal and cannot see them in the python interactor. How can I r…

---

## [Release of Slicer 5.6 in progress](https://discourse.slicer.org/t/release-of-slicer-5-6-in-progress/33015)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 5\
**Last updated:** [December 12, 2023, 8:46pm UTC](https://discourse.slicer.org/t/release-of-slicer-5-6-in-progress/33015 "2023-12-12T20:46:29Z")

</div>

Today’s (November 24th) regular Preview and Stable builds of Slicer and associated extensions will be disabled in favor of a new stable release. To track the progress, see Release Slicer v5.6 · Issue #7391 · Slicer/Slic…

---

## [How to draw a horizontal line in a slice view?](https://discourse.slicer.org/t/how-to-draw-a-horizontal-line-in-a-slice-view/33324)

<div class="topic-metadata">

**Author:** [@Fokatu](https://discourse.slicer.org/u/Fokatu)\
**Replies:** 2\
**Last updated:** [December 10, 2023, 5:32am UTC](https://discourse.slicer.org/t/how-to-draw-a-horizontal-line-in-a-slice-view/33324 "2023-12-10T05:32:41Z")

</div>

I want that the line to occupy the entire width of the view, and still occupy the entire width when zooming and panning. At the same time, the line should move as the image moves.

---

## [Is this a bug about the Plane Markups？](https://discourse.slicer.org/t/is-this-a-bug-about-the-plane-markups/32154)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 3\
**Last updated:** [December 9, 2023, 10:15pm UTC](https://discourse.slicer.org/t/is-this-a-bug-about-the-plane-markups/32154 "2023-12-09T22:15:32Z")

</div>

I put a plane in the 2D view, but the center of the plane does not adjust as the plane changes. This should be the same as ROI, which can be adjusted at any time. How to modify the code?

---

## [Change setting to "harden regularization transform"](https://discourse.slicer.org/t/change-setting-to-harden-regularization-transform/33241)

<div class="topic-metadata">

**Author:** [@Gaelle\_Leroux](https://discourse.slicer.org/u/Gaelle_Leroux)\
**Replies:** 4\
**Last updated:** [December 7, 2023, 2:17pm UTC](https://discourse.slicer.org/t/change-setting-to-harden-regularization-transform/33241 "2023-12-07T14:17:05Z")

</div>

Hi @jcfr, @lassoan ! I’m developing a module to automatically apply the matrix to volume files. In the new version of Slicer we can change the “Acquisition geometry regularization” to “harden regularization transform”. …

---

## [Custom mouse interaction with model node](https://discourse.slicer.org/t/custom-mouse-interaction-with-model-node/33264)

<div class="topic-metadata">

**Author:** [@drouin-simon](https://discourse.slicer.org/u/drouin-simon)\
**Replies:** 3\
**Last updated:** [December 6, 2023, 9:41pm UTC](https://discourse.slicer.org/t/custom-mouse-interaction-with-model-node/33264 "2023-12-06T21:41:58Z")

</div>

I’m trying to implement a custom mouse-based interaction mechanism to move/rotate a model node in the 3D view (scripted module). I want a different interaction than the one provided by the transform node widget. For exam…

---

## [Make custom application - changing UI/UX design](https://discourse.slicer.org/t/make-custom-application-changing-ui-ux-design/33251)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 8:21pm UTC](https://discourse.slicer.org/t/make-custom-application-changing-ui-ux-design/33251 "2023-12-06T20:21:15Z")

</div>

Hi I’m working on creating a custom app based on Slicer. The functional aspects are completed, and I’m currently in the process of updating the UI/UX for user convenience. While exploring the options for updating the U…

---

## [Access mrmlScene from terminal using PythonSlicer](https://discourse.slicer.org/t/access-mrmlscene-from-terminal-using-pythonslicer/21981)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 6\
**Last updated:** [December 6, 2023, 5:37am UTC](https://discourse.slicer.org/t/access-mrmlscene-from-terminal-using-pythonslicer/21981 "2023-12-06T05:37:14Z")

</div>

Hi everybody. I have used PythonSlicer from terminal before. I’ve used it to run scripts using the environment and dependencies that come with slicer. Ex: ./PythonSlicer ~/test.py Now I want to run a python script usin…

---

## [Click and connect two separated segments of a vessel segmentation](https://discourse.slicer.org/t/click-and-connect-two-separated-segments-of-a-vessel-segmentation/33161)

<div class="topic-metadata">

**Author:** [@ruili](https://discourse.slicer.org/u/ruili)\
**Replies:** 7\
**Last updated:** [December 6, 2023, 12:59am UTC](https://discourse.slicer.org/t/click-and-connect-two-separated-segments-of-a-vessel-segmentation/33161 "2023-12-06T00:59:10Z")

</div>

Hi all, I am working on a project where I generate the segmentation of blood vessels in the brain using some other software and compute their centrelines using the SlicerVMTK extension. However, a common problem with th…

---

## [Python script to create an empty time sequence list](https://discourse.slicer.org/t/python-script-to-create-an-empty-time-sequence-list/33233)

<div class="topic-metadata">

**Author:** [@admarques](https://discourse.slicer.org/u/admarques)\
**Replies:** 0\
**Last updated:** [December 5, 2023, 2:47pm UTC](https://discourse.slicer.org/t/python-script-to-create-an-empty-time-sequence-list/33233 "2023-12-05T14:47:46Z")

</div>

I’m working with a CT image dataset containing different time phases. I would like to write a Python script to create an empty time sequence list as a placeholder to have these pre-created lists with specific names and …

---

## [How to change color of text and Bar of RGB slice view?](https://discourse.slicer.org/t/how-to-change-color-of-text-and-bar-of-rgb-slice-view/33188)

<div class="topic-metadata">

**Author:** [@1116](https://discourse.slicer.org/u/1116)\
**Replies:** 3\
**Last updated:** [December 4, 2023, 12:42pm UTC](https://discourse.slicer.org/t/how-to-change-color-of-text-and-bar-of-rgb-slice-view/33188 "2023-12-04T12:42:03Z")

</div>

I want to change color of text and bar in the RGB slice view. Is it possible to change the part I circled by python script? Thank you!

---

## [How to add some holes by script?](https://discourse.slicer.org/t/how-to-add-some-holes-by-script/33183)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [December 3, 2023, 2:02am UTC](https://discourse.slicer.org/t/how-to-add-some-holes-by-script/33183 "2023-12-03T02:02:29Z")

</div>

When I am splitting the skin, I want to add some holes on the surface of the skin model. This can be achieved using the eraser tool. Currently, I have placed some points on the surface of the skin model, and I want to wr…

---

## [Create new qSlicerWidget](https://discourse.slicer.org/t/create-new-qslicerwidget/33132)

<div class="topic-metadata">

**Author:** [@Victor\_Manuel\_Montan](https://discourse.slicer.org/u/Victor_Manuel_Montan)\
**Replies:** 2\
**Last updated:** [December 1, 2023, 7:08pm UTC](https://discourse.slicer.org/t/create-new-qslicerwidget/33132 "2023-12-01T19:08:27Z")

</div>

I am developing a new qSlicerWidget that should be shown when a button that is part of a qMRMLWidget is clicked. When the new qSlicerWidget is created empty, it is possible to see the new window without any elements insi…

---

## [Linking external C++ project against Slicer loadable-module](https://discourse.slicer.org/t/linking-external-c-project-against-slicer-loadable-module/33138)

<div class="topic-metadata">

**Author:** [@Federico](https://discourse.slicer.org/u/Federico)\
**Replies:** 3\
**Last updated:** [November 30, 2023, 10:50am UTC](https://discourse.slicer.org/t/linking-external-c-project-against-slicer-loadable-module/33138 "2023-11-30T10:50:15Z")

</div>

Hi All, I saw there were a few posts that asked a similar question already but the answers were not clear enough to me unfortunately. Is it possible to link an external C++ exe/library against a Slicer Loadable Module …

[Previous page](https://discourse.slicer.org/c/dev/5.md?page=25)

[Next page](https://discourse.slicer.org/c/dev/5.md?page=27)
