# Development

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

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

**Page:** 18

---

## [Slice orientation Rotate Axial plane](https://discourse.slicer.org/t/slice-orientation-rotate-axial-plane/37627)

<div class="topic-metadata">

**Author:** [@Seokjun\_Hwang](https://discourse.slicer.org/u/Seokjun_Hwang)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 6:37am UTC](https://discourse.slicer.org/t/slice-orientation-rotate-axial-plane/37627 "2024-07-31T06:37:43Z")

</div>

I want to adjust the angle of the axial black cross-sectional plane to match the red plane as shown in the picture. This is the valve area of the aorta, and I am looking for a module or Python function that can a…

---

## [Can't edit a custom module](https://discourse.slicer.org/t/cant-edit-a-custom-module/30448)

<div class="topic-metadata">

**Author:** [@Poppy](https://discourse.slicer.org/u/Poppy)\
**Replies:** 1\
**Last updated:** [July 8, 2023, 2:26pm UTC](https://discourse.slicer.org/t/cant-edit-a-custom-module/30448 "2023-07-08T14:26:47Z")

</div>

Operating system: Windows 11 Slicer version: 5.2.2 Expected behavior: Hello, I am trying to make a custom scripted module. After creating it if I press reload and test on the default template code it says test passed …

---

## [STL file exported and import to CFD model/ inlet create](https://discourse.slicer.org/t/stl-file-exported-and-import-to-cfd-model-inlet-create/34572)

<div class="topic-metadata">

**Author:** [@D\_Dand](https://discourse.slicer.org/u/D_Dand)\
**Replies:** 3\
**Last updated:** [July 29, 2024, 6:55pm UTC](https://discourse.slicer.org/t/stl-file-exported-and-import-to-cfd-model-inlet-create/34572 "2024-07-29T18:55:16Z")

</div>

Good morning everyone, I have done the segmentation part of lower human airway. Now, I want to export it and then import to CFD model to simulate human airflow in the lower airway. However, when I export the model into …

---

## [Testing for Extension: Automated CI/CD and Self Test](https://discourse.slicer.org/t/testing-for-extension-automated-ci-cd-and-self-test/36481)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 3\
**Last updated:** [July 28, 2024, 9:59pm UTC](https://discourse.slicer.org/t/testing-for-extension-automated-ci-cd-and-self-test/36481 "2024-07-28T21:59:48Z")

</div>

Hello, We’re developing a extension for 3D Slicer. I’m thinking about how we can do automated testing with CI/CD tool. If we can do with GitHub Action maybe. We can install 3D Slicer in the pipeline, but I don’t know ho…

---

## [Windows 11 WSL2 floating View Widgets bug](https://discourse.slicer.org/t/windows-11-wsl2-floating-view-widgets-bug/29608)

<div class="topic-metadata">

**Author:** [@Thibault\_Pelletier](https://discourse.slicer.org/u/Thibault_Pelletier)\
**Replies:** 6\
**Last updated:** [July 26, 2024, 6:08am UTC](https://discourse.slicer.org/t/windows-11-wsl2-floating-view-widgets-bug/29608 "2024-07-26T06:08:30Z")

</div>

Hi everyone, I recently wanted to test an extension build on Linux and used Windows 11 WSL2 for this with a Slicer build from scratch on the main branch. Everything builds smoothly (which is really great) and GUI suppo…

---

## [Segment editor effect sourceVolumeImageData not updated](https://discourse.slicer.org/t/segment-editor-effect-sourcevolumeimagedata-not-updated/37500)

<div class="topic-metadata">

**Author:** [@Llujoo](https://discourse.slicer.org/u/Llujoo)\
**Replies:** 5\
**Last updated:** [July 25, 2024, 3:57pm UTC](https://discourse.slicer.org/t/segment-editor-effect-sourcevolumeimagedata-not-updated/37500 "2024-07-25T15:57:16Z")

</div>

Hello I am writing a SegmentEditorEffect based on AbstractScriptedSegmentEditorEffect. When I call self.scriptedEffect.sourceVolumeImageData() everything works fine. However if I change the selected source volume in the…

---

## [Help dev)"curved planar reformat" color problem](https://discourse.slicer.org/t/help-dev-curved-planar-reformat-color-problem/37554)

<div class="topic-metadata">

**Author:** [@Seokjun\_Hwang](https://discourse.slicer.org/u/Seokjun_Hwang)\
**Replies:** 0\
**Last updated:** [July 25, 2024, 8:04am UTC](https://discourse.slicer.org/t/help-dev-curved-planar-reformat-color-problem/37554 "2024-07-25T08:04:41Z")

</div>

Hellow…! I am seeking assistance with an issue encountered while using the Curved Planar Reformat module with sandbox extensions. Problem: I used the straightening function to straighten the aorta into a straight …

---

## [Python code for aligning the camera or 3D view at specific angle](https://discourse.slicer.org/t/python-code-for-aligning-the-camera-or-3d-view-at-specific-angle/37544)

<div class="topic-metadata">

**Author:** [@uday\_15](https://discourse.slicer.org/u/uday_15)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 10:00pm UTC](https://discourse.slicer.org/t/python-code-for-aligning-the-camera-or-3d-view-at-specific-angle/37544 "2024-07-24T22:00:18Z")

</div>

Can I have code for aligning the camera node or 3D view at specific angle. More specific, I have three points and want to align the camera node or 3D view such that the plane created through those three points should be …

---

## [How to use python script to install module in additional module paths?](https://discourse.slicer.org/t/how-to-use-python-script-to-install-module-in-additional-module-paths/33410)

<div class="topic-metadata">

**Author:** [@derekcbr](https://discourse.slicer.org/u/derekcbr)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 6:34pm UTC](https://discourse.slicer.org/t/how-to-use-python-script-to-install-module-in-additional-module-paths/33410 "2024-07-23T18:34:08Z")

</div>

currentPaths = slicer.util.settingsValue(‘Modules/AdditionalPaths’, ) if isinstance(currentPaths, str): currentPaths = \[currentPaths\] if modulePath not in currentPaths: currentPaths.append(modulePath) slicer.util.se…

---

## [batch registration using Elastix](https://discourse.slicer.org/t/batch-registration-using-elastix/37527)

<div class="topic-metadata">

**Author:** [@mingtian126](https://discourse.slicer.org/u/mingtian126)\
**Replies:** 0\
**Last updated:** [July 23, 2024, 5:49pm UTC](https://discourse.slicer.org/t/batch-registration-using-elastix/37527 "2024-07-23T17:49:26Z")

</div>

Operating system: Slicer version: Expected behavior: Actual behavior:

---

## [Slicer can be built and runs well on Windows Subsystem for Linux (WSL2)](https://discourse.slicer.org/t/slicer-can-be-built-and-runs-well-on-windows-subsystem-for-linux-wsl2/16022)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 7\
**Last updated:** [July 22, 2024, 10:17pm UTC](https://discourse.slicer.org/t/slicer-can-be-built-and-runs-well-on-windows-subsystem-for-linux-wsl2/16022 "2024-07-22T22:17:19Z")

</div>

Some information for Windows developers who want to develop/test Slicer on Linux. On current Windows 10 versions, it is very easy to install Linux and run Linux GUI applications such as Slicer, by using Windows Subsystem…

---

## [Question about the algorithm of the extract centerline module (VMTK)](https://discourse.slicer.org/t/question-about-the-algorithm-of-the-extract-centerline-module-vmtk/37495)

<div class="topic-metadata">

**Author:** [@Seokjun\_Hwang](https://discourse.slicer.org/u/Seokjun_Hwang)\
**Replies:** 1\
**Last updated:** [July 22, 2024, 10:07pm UTC](https://discourse.slicer.org/t/question-about-the-algorithm-of-the-extract-centerline-module-vmtk/37495 "2024-07-22T22:07:19Z")

</div>

Using the extract centerline module, I have obtained the centerline of the aorta, as shown in the picture. My research team members are interested in understanding and want to explain how this module generates the cent…

---

## [Get the slice view under the mouse cursor](https://discourse.slicer.org/t/get-the-slice-view-under-the-mouse-cursor/37501)

<div class="topic-metadata">

**Author:** [@rohithck](https://discourse.slicer.org/u/rohithck)\
**Replies:** 1\
**Last updated:** [July 22, 2024, 9:12pm UTC](https://discourse.slicer.org/t/get-the-slice-view-under-the-mouse-cursor/37501 "2024-07-22T21:12:08Z")

</div>

Hello slicer developers, How to get the slice view (Red, Green or Yellow) under the mouse cursor in Python, like what shown in Data Probe module (Eg: Green in the image)? And also how to get the plane coordinates (or p…

---

## [Add my own segmentation model to 3D Slicer](https://discourse.slicer.org/t/add-my-own-segmentation-model-to-3d-slicer/37221)

<div class="topic-metadata">

**Author:** [@maniron](https://discourse.slicer.org/u/maniron)\
**Replies:** 5\
**Last updated:** [July 22, 2024, 9:08pm UTC](https://discourse.slicer.org/t/add-my-own-segmentation-model-to-3d-slicer/37221 "2024-07-22T21:08:37Z")

</div>

Previously we were trying to add a plugin in windows and install the required packages of our plugin using PythonSlicer.exe in windows. PythonSlicer.exe -m pip install --trusted-host=pytorch.org --trusted-host=download…

---

## [Python 3.11 Upgrade](https://discourse.slicer.org/t/python-3-11-upgrade/36235)

<div class="topic-metadata">

**Author:** [@lukepolson](https://discourse.slicer.org/u/lukepolson)\
**Replies:** 2\
**Last updated:** [July 19, 2024, 5:29pm UTC](https://discourse.slicer.org/t/python-3-11-upgrade/36235 "2024-07-19T17:29:58Z")

</div>

Hi all, We’re currently in the process of developing a tomographic reconstruction extension for 3D slicer (currently SPECT, we hope to build others for PET/CT soon as well). Our extension relies on PyTomography, which i…

---

## [Module icon improvements](https://discourse.slicer.org/t/module-icon-improvements/37454)

<div class="topic-metadata">

**Author:** [@wenples](https://discourse.slicer.org/u/wenples)\
**Replies:** 3\
**Last updated:** [July 18, 2024, 6:20pm UTC](https://discourse.slicer.org/t/module-icon-improvements/37454 "2024-07-18T18:20:09Z")

</div>

Hi all, I’m working on slice viewer and segment editor icon improvements – focusing on the SEGMENT EDITOR MODULE here, I’d like to get feedback about clarifying the meaning any of the editor’s icons. For any of the tool…

---

## [Getting a "Qt 5.15 was not found on your system" error](https://discourse.slicer.org/t/getting-a-qt-5-15-was-not-found-on-your-system-error/37377)

<div class="topic-metadata">

**Author:** [@tmondo](https://discourse.slicer.org/u/tmondo)\
**Replies:** 2\
**Last updated:** [July 18, 2024, 8:33am UTC](https://discourse.slicer.org/t/getting-a-qt-5-15-was-not-found-on-your-system-error/37377 "2024-07-18T08:33:32Z")

</div>

Hello, I’ve been trying to setup Slicer for local development, but I’m having trouble with Qt when going through the configuration step. I’m running MacOS, and on the build instructions page(macOS — 3D Slicer documenta…

---

## [Import slicer module in script cli module](https://discourse.slicer.org/t/import-slicer-module-in-script-cli-module/37438)

<div class="topic-metadata">

**Author:** [@fqzhice](https://discourse.slicer.org/u/fqzhice)\
**Replies:** 0\
**Last updated:** [July 18, 2024, 2:43am UTC](https://discourse.slicer.org/t/import-slicer-module-in-script-cli-module/37438 "2024-07-18T02:43:39Z")

</div>

I create a script cli module and call this script as below： PythonQt::init(); PythonQtObjectPtr context = PythonQt::self()-\>getMainModule(); QString cmd = QString( "import os\\n" "import sys\\n" "CTASegExePat…

---

## [Creating Multiple Transform Handles for a ModelNode in Slicer 5.7](https://discourse.slicer.org/t/creating-multiple-transform-handles-for-a-modelnode-in-slicer-5-7/37421)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 0\
**Last updated:** [July 17, 2024, 8:40am UTC](https://discourse.slicer.org/t/creating-multiple-transform-handles-for-a-modelnode-in-slicer-5-7/37421 "2024-07-17T08:40:51Z")

</div>

Hello, Is it possible to create two Transform handles for one model? I have tried to make it work with the video using the code below, but only one handle works while the other does not function properly. Am I missing…

---

## [Adding Shadow function throws error](https://discourse.slicer.org/t/adding-shadow-function-throws-error/37410)

<div class="topic-metadata">

**Author:** [@Marleen\_Sinsel](https://discourse.slicer.org/u/Marleen_Sinsel)\
**Replies:** 1\
**Last updated:** [July 16, 2024, 8:52pm UTC](https://discourse.slicer.org/t/adding-shadow-function-throws-error/37410 "2024-07-16T20:52:13Z")

</div>

We have created an extension with Total Segmentator for Slicer (5.6.1), in which there is a function to draw the silhouette around objects and in another function a shadow should be added. We get the error below, which o…

---

## [Using Python multithreading in 3D Slicer](https://discourse.slicer.org/t/using-python-multithreading-in-3d-slicer/32299)

<div class="topic-metadata">

**Author:** [@Hunger-beat](https://discourse.slicer.org/u/Hunger-beat)\
**Replies:** 11\
**Last updated:** [July 15, 2024, 3:00pm UTC](https://discourse.slicer.org/t/using-python-multithreading-in-3d-slicer/32299 "2024-07-15T15:00:56Z")

</div>

Dear forum， I am using Python to write an extension module in 3D Slicer. I need sub threads to perform heavy calculations while also interacting with the UI for some data. I used Python’s threading for multithreading pr…

---

## [Lock a specific plane for rotating or translating only](https://discourse.slicer.org/t/lock-a-specific-plane-for-rotating-or-translating-only/37327)

<div class="topic-metadata">

**Author:** [@Miguel\_Nobre\_Menezes](https://discourse.slicer.org/u/Miguel_Nobre_Menezes)\
**Replies:** 1\
**Last updated:** [July 13, 2024, 8:21pm UTC](https://discourse.slicer.org/t/lock-a-specific-plane-for-rotating-or-translating-only/37327 "2024-07-13T20:21:35Z")

</div>

I’m currently building a module for CT analysis. I’ve managed to do quite a bit and am in the process of refining it. I already created planes, rotated and centered them, added custom measurements and plotted a way to ge…

---

## [Brain image registration for radiotherapy treatment planning](https://discourse.slicer.org/t/brain-image-registration-for-radiotherapy-treatment-planning/19102)

<div class="topic-metadata">

**Author:** [@Eman\_Showkatian](https://discourse.slicer.org/u/Eman_Showkatian)\
**Replies:** 8\
**Last updated:** [July 12, 2024, 3:44pm UTC](https://discourse.slicer.org/t/brain-image-registration-for-radiotherapy-treatment-planning/19102 "2024-07-12T15:44:21Z")

</div>

Operating system: Windows 10 x64 Slicer version: 4.11.0 Hi slicer team, I exported one patient data from the radiotherapy treatment planning system and tried to register the CT images with corresponding MRI T1w of the…

---

## [2D Slice/3D View interactions for Plot and Table views](https://discourse.slicer.org/t/2d-slice-3d-view-interactions-for-plot-and-table-views/37317)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 1\
**Last updated:** [July 11, 2024, 2:15am UTC](https://discourse.slicer.org/t/2d-slice-3d-view-interactions-for-plot-and-table-views/37317 "2024-07-11T02:15:54Z")

</div>

Maximizing of views with a button in the view controller as well as right-click context menu and double-click actions were originally added in Slicer with the following commit: I have recently been doing more work usin…

---

## [Automatic Fiducial Registration](https://discourse.slicer.org/t/automatic-fiducial-registration/7099)

<div class="topic-metadata">

**Author:** [@redsoxfan4](https://discourse.slicer.org/u/redsoxfan4)\
**Replies:** 5\
**Last updated:** [July 10, 2024, 3:14pm UTC](https://discourse.slicer.org/t/automatic-fiducial-registration/7099 "2024-07-10T15:14:05Z")

</div>

Hi All. I would like to build an extension that will automatically pick up MR-visible spheres and place a fiducial in the center of them. Would anyone be able to point me in the write direction for starting this project?…

---

## [Create dimension lines for 3D model](https://discourse.slicer.org/t/create-dimension-lines-for-3d-model/37250)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [July 8, 2024, 12:43pm UTC](https://discourse.slicer.org/t/create-dimension-lines-for-3d-model/37250 "2024-07-08T12:43:27Z")

</div>

Hi all, I would like to draw dimension lines on a model in the 3D view as shown in the following image. Is there any existing feature in Slicer that provides similar functionality, or would it need to be created from…

---

## [Dockable qtWidgets](https://discourse.slicer.org/t/dockable-qtwidgets/37223)

<div class="topic-metadata">

**Author:** [@JASON](https://discourse.slicer.org/u/JASON)\
**Replies:** 2\
**Last updated:** [July 8, 2024, 11:06am UTC](https://discourse.slicer.org/t/dockable-qtwidgets/37223 "2024-07-08T11:06:11Z")

</div>

Hello, Is it possible to allow floating qtWidget UI to dock into the 3D Slicer interface? I notice that every item in the Slicer interface can be dragged & dropped into panels around the viewport. Is it possible for m…

---

## [I want to branch extract(remove)](https://discourse.slicer.org/t/i-want-to-branch-extract-remove/37001)

<div class="topic-metadata">

**Author:** [@Seokjun\_Hwang](https://discourse.slicer.org/u/Seokjun_Hwang)\
**Replies:** 2\
**Last updated:** [July 8, 2024, 3:10am UTC](https://discourse.slicer.org/t/i-want-to-branch-extract-remove/37001 "2024-07-08T03:10:54Z")

</div>

I am using Python and would like to remove the short branches from the aorta in the image below. My goal is to obtain a clean, tubular representation of the aorta. The purpose is to eliminate noise in order to calculate …

---

## [Running Slicer from PyCharm/external](https://discourse.slicer.org/t/running-slicer-from-pycharm-external/37095)

<div class="topic-metadata">

**Author:** [@b\_srf](https://discourse.slicer.org/u/b_srf)\
**Replies:** 4\
**Last updated:** [July 4, 2024, 8:00pm UTC](https://discourse.slicer.org/t/running-slicer-from-pycharm-external/37095 "2024-07-04T20:00:08Z")

</div>

Hello! I want to run a python script for Slicer from PyCharm. I’m using the SegmentEditor module and PyRadiomics, and would like to automate the process for batch processing. I’m able to write a script that runs on Slic…

---

## [Configure c++ intellisense and cmake tools for vscode](https://discourse.slicer.org/t/configure-c-intellisense-and-cmake-tools-for-vscode/37198)

<div class="topic-metadata">

**Author:** [@kritc](https://discourse.slicer.org/u/kritc)\
**Replies:** 0\
**Last updated:** [July 4, 2024, 3:21pm UTC](https://discourse.slicer.org/t/configure-c-intellisense-and-cmake-tools-for-vscode/37198 "2024-07-04T15:21:25Z")

</div>

I’m currently developing C++ CLI modules in Visual Studio Code in mac-apple-silicon. How to configure c++ intellisense and cmake tools to work in vscode ? please advice. The extension workspace is outside slicer sour…

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

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