# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&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

---

## [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 …

---

## [Make launcher with extension module](https://discourse.slicer.org/t/make-launcher-with-extension-module/32774)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 6\
**Last updated:** [November 27, 2023, 12:48pm UTC](https://discourse.slicer.org/t/make-launcher-with-extension-module/32774 "2023-11-27T12:48:21Z")

</div>

Hi all I am trying to create an application launcher with custom and built extionsion modules. I would like the modules loaded in slicer already when the custom application is installed by launcher. I found a similar …

---

## [Problems applying AutoThresholdMethod](https://discourse.slicer.org/t/problems-applying-autothresholdmethod/30281)

<div class="topic-metadata">

**Author:** [@Ikannuna](https://discourse.slicer.org/u/Ikannuna)\
**Replies:** 2\
**Last updated:** [November 27, 2023, 5:11am UTC](https://discourse.slicer.org/t/problems-applying-autothresholdmethod/30281 "2023-11-27T05:11:59Z")

</div>

Hello and good afternoon, Iam new to 3D Slicer and using it in a project for university. The goal is to segment DICOM bone scans automatically with python via the implemented AutoThresholdMethod’s Otsu, Iso Data, Maxim…

---

## [Change models color](https://discourse.slicer.org/t/change-models-color/32971)

<div class="topic-metadata">

**Author:** [@Santiago\_Cutiller](https://discourse.slicer.org/u/Santiago_Cutiller)\
**Replies:** 3\
**Last updated:** [November 26, 2023, 9:52pm UTC](https://discourse.slicer.org/t/change-models-color/32971 "2023-11-26T21:52:41Z")

</div>

Hello! I’m trying to take my first steps in developing extensions for 3D slicer. I want to make an extension that changes the color of a model: model\_name = "ModelName" node\_model = getNode(model\_name) node\_model.GetDi…

---

## [Build Slicer with IGT](https://discourse.slicer.org/t/build-slicer-with-igt/33037)

<div class="topic-metadata">

**Author:** [@1116](https://discourse.slicer.org/u/1116)\
**Replies:** 0\
**Last updated:** [November 26, 2023, 3:54pm UTC](https://discourse.slicer.org/t/build-slicer-with-igt/33037 "2023-11-26T15:54:02Z")

</div>

I am building Slicer with SlicerIGT. I want the IGT module to be automatically added in Slicer when the Slicer.exe is created. Where should I put the following commands in the top CMakeLists.txt of the Slicer code? Is…

---

## [Is there a faster way to read and write a segment as a numpy array?](https://discourse.slicer.org/t/is-there-a-faster-way-to-read-and-write-a-segment-as-a-numpy-array/32487)

<div class="topic-metadata">

**Author:** [@abhilaksh\_singh\_reen](https://discourse.slicer.org/u/abhilaksh_singh_reen)\
**Replies:** 6\
**Last updated:** [November 26, 2023, 12:11pm UTC](https://discourse.slicer.org/t/is-there-a-faster-way-to-read-and-write-a-segment-as-a-numpy-array/32487 "2023-11-26T12:11:40Z")

</div>

Hi. My team is building a Python Scripted Slicer Module for an organ segmentation task. We have a Segmentation Model to which we are only giving a single slice as input (at a time) and the model outputs the mask for tha…

---

## [Slicer constantly closing after distanceFilter.Update()](https://discourse.slicer.org/t/slicer-constantly-closing-after-distancefilter-update/33020)

<div class="topic-metadata">

**Author:** [@Dayo](https://discourse.slicer.org/u/Dayo)\
**Replies:** 4\
**Last updated:** [November 25, 2023, 8:14pm UTC](https://discourse.slicer.org/t/slicer-constantly-closing-after-distancefilter-update/33020 "2023-11-25T20:14:24Z")

</div>

Hello. I’m trying to calculate the distance between two meshes using vtkDistancePolyDataFilter() in my extension. Below is a snippet of my code: distanceFilter = vtk.vtkDistancePolyDataFilter() distanceFilter.SetInput…

---

## [Build SlicerCAT on Ubuntu 22.04.3 LTS](https://discourse.slicer.org/t/build-slicercat-on-ubuntu-22-04-3-lts/33019)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 0\
**Last updated:** [November 25, 2023, 12:25pm UTC](https://discourse.slicer.org/t/build-slicercat-on-ubuntu-22-04-3-lts/33019 "2023-11-25T12:25:34Z")

</div>

Hi, I wanted to share I could successfully build the app with the following code: cat /etc/os-release | grep PRETTY\_NAME # prints 'PRETTY\_NAME="Ubuntu 22.04.3 LTS"' sudo apt update && sudo apt install git subversion b…

---

## [How to customize the Segment Editor effects - Paint/Erase options in Python?](https://discourse.slicer.org/t/how-to-customize-the-segment-editor-effects-paint-erase-options-in-python/33011)

<div class="topic-metadata">

**Author:** [@rajmadhan](https://discourse.slicer.org/u/rajmadhan)\
**Replies:** 0\
**Last updated:** [November 24, 2023, 7:14pm UTC](https://discourse.slicer.org/t/how-to-customize-the-segment-editor-effects-paint-erase-options-in-python/33011 "2023-11-24T19:14:54Z")

</div>

Operating system: Windows 10 Slicer version: 5.4.0 Expected behavior: I would like to customize the Segment Editor options for the Paint/Erase effects in Python. Desired functionality: Set a fixed brush diameter, s…

---

## [How to modify CTKAppLauncherLib?](https://discourse.slicer.org/t/how-to-modify-ctkapplauncherlib/32972)

<div class="topic-metadata">

**Author:** [@qiqi5210](https://discourse.slicer.org/u/qiqi5210)\
**Replies:** 2\
**Last updated:** [November 23, 2023, 8:59pm UTC](https://discourse.slicer.org/t/how-to-modify-ctkapplauncherlib/32972 "2023-11-23T20:59:38Z")

</div>

In Windows, when compiling Slicer, is Slicer directly downloaded and used with the pre-compiled CTKAppLauncher? Specifically, the CTKAppLauncher-0.1.31-win-amd64.tar file. If I want to modify CTKAppLauncherLib, do I need…

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

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