# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=39

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

**Page:** 40

---

## [Print the point's RAS in real time](https://discourse.slicer.org/t/print-the-points-ras-in-real-time/28449)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [March 19, 2023, 4:59pm UTC](https://discourse.slicer.org/t/print-the-points-ras-in-real-time/28449 "2023-03-19T16:59:55Z")

</div>

I creat a point F, I want to print the point’s RAS position in python console，in real-time，when I move it. Anyone can tell me how to write the script? I write it as like this，it doesn’t work: F\_Node=getNode('F') def …

---

## [Slicer progress from ITK Python filter](https://discourse.slicer.org/t/slicer-progress-from-itk-python-filter/28432)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 10:43pm UTC](https://discourse.slicer.org/t/slicer-progress-from-itk-python-filter/28432 "2023-03-17T22:43:00Z")

</div>

I have similar question to this: What is the best way to update progress bar from a scripted module? I am thinking of the progress bar which sometimes appears when running a CLI module or something similar. ITK Ultrasou…

---

## [Markups saved with Scalar Visibility ON produce warning when loading](https://discourse.slicer.org/t/markups-saved-with-scalar-visibility-on-produce-warning-when-loading/28435)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 0\
**Last updated:** [March 17, 2023, 8:33pm UTC](https://discourse.slicer.org/t/markups-saved-with-scalar-visibility-on-produce-warning-when-loading/28435 "2023-03-17T20:33:56Z")

</div>

Hi, Let’s suppose in Markups module we have set Active Scalars (PedigreeId for example) and Scalar Visibility to ON. Then we save the scene. Finally we load the scene and we can see the following warning: \[VTK\] Warni…

---

## [Can I create c++ extensions via DLLs?](https://discourse.slicer.org/t/can-i-create-c-extensions-via-dlls/28393)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 6\
**Last updated:** [March 17, 2023, 2:39am UTC](https://discourse.slicer.org/t/can-i-create-c-extensions-via-dlls/28393 "2023-03-17T02:39:01Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 Hi, slicer users I’m trying to create a C++ dll(dynamic-link library) to use a function implemented in C++ in Python. Can this DLL be applied to 3d slicer? So, would…

---

## [Setting up the qMRML Segment editor Widget in ui](https://discourse.slicer.org/t/setting-up-the-qmrml-segment-editor-widget-in-ui/24486)

<div class="topic-metadata">

**Author:** [@HanadElmi](https://discourse.slicer.org/u/HanadElmi)\
**Replies:** 7\
**Last updated:** [March 16, 2023, 9:25pm UTC](https://discourse.slicer.org/t/setting-up-the-qmrml-segment-editor-widget-in-ui/24486 "2023-03-16T21:25:41Z")

</div>

Slicer version: 5.0.2 Hello everyone, I have been trying to add the segment editor widget within my own module for user convenience. So far, I have been able to create the widget and have it appear in a popup window. H…

---

## [An approach to apply the proposed segmentation region from an ML model to DICOM data ](https://discourse.slicer.org/t/an-approach-to-apply-the-proposed-segmentation-region-from-an-ml-model-to-dicom-data/28372)

<div class="topic-metadata">

**Author:** [@mlh](https://discourse.slicer.org/u/mlh)\
**Replies:** 1\
**Last updated:** [March 14, 2023, 1:17pm UTC](https://discourse.slicer.org/t/an-approach-to-apply-the-proposed-segmentation-region-from-an-ml-model-to-dicom-data/28372 "2023-03-14T13:17:59Z")

</div>

Hi all, I would like to create a new extension which can do the following task: Click a point on a DICOM data on Slicer (e.g. a point in a specific human organ) Get that point and image, then pass them to the ML model…

---

## [How to programmatically add control points in slicer from a numpy array](https://discourse.slicer.org/t/how-to-programmatically-add-control-points-in-slicer-from-a-numpy-array/28342)

<div class="topic-metadata">

**Author:** [@mukund\_shah](https://discourse.slicer.org/u/mukund_shah)\
**Replies:** 5\
**Last updated:** [March 13, 2023, 6:27pm UTC](https://discourse.slicer.org/t/how-to-programmatically-add-control-points-in-slicer-from-a-numpy-array/28342 "2023-03-13T18:27:20Z")

</div>

In slicer documentation following example curveNode = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLMarkupsCurveNode") slicer.util.updateMarkupsControlPointsFromArray(curveNode, pointPositions) where pointPositions is a n…

---

## [RFC: should this method be generally available?](https://discourse.slicer.org/t/rfc-should-this-method-be-generally-available/28332)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 5\
**Last updated:** [March 13, 2023, 2:11pm UTC](https://discourse.slicer.org/t/rfc-should-this-method-be-generally-available/28332 "2023-03-13T14:11:03Z")

</div>

To developers. I am thinking about proposing this function for inclusion in vtkMath. It determines a point coordinate along a line defined by p1 and p2, given an offset relative to p2. Basically, it shifts p1 to orig…

---

## [Configuring Slicer fails - C compiler not found](https://discourse.slicer.org/t/configuring-slicer-fails-c-compiler-not-found/23340)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 3\
**Last updated:** [March 13, 2023, 12:24am UTC](https://discourse.slicer.org/t/configuring-slicer-fails-c-compiler-not-found/23340 "2023-03-13T00:24:07Z")

</div>

I am rebuilding everything due to the change of version to 5, and on one of the machines I use (after building successfully on another) I’m getting this error. c:\\d\\S5R\>"c:\\Program Files\\CMake\\bin\\cmake.exe" c:\\d\\Slicer…

---

## [Qt5 binary package](https://discourse.slicer.org/t/qt5-binary-package/27710)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 9\
**Last updated:** [February 9, 2023, 1:12pm UTC](https://discourse.slicer.org/t/qt5-binary-package/27710 "2023-02-09T13:12:28Z")

</div>

I’ve been helping a developer building Slicer on Windows, and I’m shocked to see what The Qt Company did again: they removed Qt-5.15 binaries from their servers. Qt5 versions more recent than Qt-5.12 are no longer availa…

---

## [Run ANTs in Slicer Python Interactor](https://discourse.slicer.org/t/run-ants-in-slicer-python-interactor/22915)

<div class="topic-metadata">

**Author:** [@hotsen](https://discourse.slicer.org/u/hotsen)\
**Replies:** 14\
**Last updated:** [March 11, 2023, 11:06pm UTC](https://discourse.slicer.org/t/run-ants-in-slicer-python-interactor/22915 "2023-03-11T23:06:54Z")

</div>

@simonoxen, @lassoan Hi all, I tried Ants extension in Slicer, the registration worked very good. However, I want to write a script and run ANTs from Slicer Python interactor. I am able to import antsRegistration, but …

---

## [New feature: Install modules by drag-and-drop Python files](https://discourse.slicer.org/t/new-feature-install-modules-by-drag-and-drop-python-files/28311)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 0\
**Last updated:** [March 11, 2023, 4:09pm UTC](https://discourse.slicer.org/t/new-feature-install-modules-by-drag-and-drop-python-files/28311 "2023-03-11T16:09:07Z")

</div>

Until now, if developers wanted to add custom modules to Slicer, they had to open application settings, go to developer section, and append folders to the module list there. Now there is a simpler way to install modules…

---

## [Extension settings in C++ code](https://discourse.slicer.org/t/extension-settings-in-c-code/28251)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 7\
**Last updated:** [March 11, 2023, 6:44am UTC](https://discourse.slicer.org/t/extension-settings-in-c-code/28251 "2023-03-11T06:44:15Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 Hi, slicer users I know how to extend python code in 3D slicer. but this time I need to add C++ code to the 3d slicer… I know that there is cmake in 3d slicer, but I …

---

## [Using segment statistics outside of 3D Slicer](https://discourse.slicer.org/t/using-segment-statistics-outside-of-3d-slicer/28292)

<div class="topic-metadata">

**Author:** [@LDulz](https://discourse.slicer.org/u/LDulz)\
**Replies:** 1\
**Last updated:** [March 11, 2023, 5:55am UTC](https://discourse.slicer.org/t/using-segment-statistics-outside-of-3d-slicer/28292 "2023-03-11T05:55:34Z")

</div>

Does anybody know if its possible to use SegmentStatistics as standalone feature outside of 3DSlicer? I’ve used TotalSegmentator e.g. bc it was available as an individual repo and with those segmentations id like to cal…

---

## [Publication of insect morphology work using 3D Slicer](https://discourse.slicer.org/t/publication-of-insect-morphology-work-using-3d-slicer/28282)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 7\
**Last updated:** [March 11, 2023, 2:42am UTC](https://discourse.slicer.org/t/publication-of-insect-morphology-work-using-3d-slicer/28282 "2023-03-11T02:42:52Z")

</div>

Apologies for posting in Development - this is where I got most of my help for this anyway. I am very happy to announce the publication of our study, “Comparative Anatomy of the Insect Tracheal System, Part 1. Apterygot…

---

## [Septal extraction](https://discourse.slicer.org/t/septal-extraction/28142)

<div class="topic-metadata">

**Author:** [@soukup.la](https://discourse.slicer.org/u/soukup.la)\
**Replies:** 6\
**Last updated:** [March 10, 2023, 10:03pm UTC](https://discourse.slicer.org/t/septal-extraction/28142 "2023-03-10T22:03:05Z")

</div>

Hello, I’d like to extract septal surface from left (LV) or right (RV) ventricle model. I am able to convert models points to numpy arrays and get its distance using numpy.linalg.norm. Then I can select part of points w…

---

## [How to really select a qComboBox programmly](https://discourse.slicer.org/t/how-to-really-select-a-qcombobox-programmly/28259)

<div class="topic-metadata">

**Author:** [@WilliamLambert1205](https://discourse.slicer.org/u/WilliamLambert1205)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 2:23pm UTC](https://discourse.slicer.org/t/how-to-really-select-a-qcombobox-programmly/28259 "2023-03-09T14:23:52Z")

</div>

Hi,everyone. I’m trying to using code to substitute a series of mouse clicking and I get into trouble, please guide me. In the first step, I need to select the first item in ‘OutputVolume’.(‘OutputVolume’ is a qComboBox…

---

## [Markups line projection on a model](https://discourse.slicer.org/t/markups-line-projection-on-a-model/28205)

<div class="topic-metadata">

**Author:** [@soukup.la](https://discourse.slicer.org/u/soukup.la)\
**Replies:** 1\
**Last updated:** [March 9, 2023, 10:43am UTC](https://discourse.slicer.org/t/markups-line-projection-on-a-model/28205 "2023-03-09T10:43:59Z")

</div>

Hello, I have markups line which passes through the surface of the model. I’d like to shift endpoint to the model surface using python. Could you help me please? Ladislav

---

## [Segment editor table add new column](https://discourse.slicer.org/t/segment-editor-table-add-new-column/28249)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 5:39am UTC](https://discourse.slicer.org/t/segment-editor-table-add-new-column/28249 "2023-03-09T05:39:50Z")

</div>

Hi all. I have created a SegmentEditorEffect. Through this effect I am able to add/delete segment objects. I can get/set their attributes such as visibility, status flag, color, etc. However, I would like to add new at…

---

## [Change color of the tables in SlicerCAT](https://discourse.slicer.org/t/change-color-of-the-tables-in-slicercat/28215)

<div class="topic-metadata">

**Author:** [@Kaubert](https://discourse.slicer.org/u/Kaubert)\
**Replies:** 0\
**Last updated:** [March 7, 2023, 1:12pm UTC](https://discourse.slicer.org/t/change-color-of-the-tables-in-slicercat/28215 "2023-03-07T13:12:00Z")

</div>

Hi, I would like to change the color of the tables in a Custom App based on SlicerCAT. I managed to change the color of the App with the palette in the QAppStyle.cxx file. However, I still have a brown color for one …

---

## [Error when installing matplotib in Slicer](https://discourse.slicer.org/t/error-when-installing-matplotib-in-slicer/28141)

<div class="topic-metadata">

**Author:** [@hapkx](https://discourse.slicer.org/u/hapkx)\
**Replies:** 14\
**Last updated:** [March 7, 2023, 10:24am UTC](https://discourse.slicer.org/t/error-when-installing-matplotib-in-slicer/28141 "2023-03-07T10:24:04Z")

</div>

I’m trying to install matplotlib package in python-interactor in Slicer 5.0.2 with the following commands: from slicer.util import pip\_install pip\_install("matplotlib") import matplotlib.pyplot as plt I get the followi…

---

## [Slicers hangs while running a scripted module](https://discourse.slicer.org/t/slicers-hangs-while-running-a-scripted-module/28149)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 2\
**Last updated:** [March 7, 2023, 6:07am UTC](https://discourse.slicer.org/t/slicers-hangs-while-running-a-scripted-module/28149 "2023-03-07T06:07:03Z")

</div>

Hi, could you please suggest the best way to avoid any slicer hang. The python scripted module I wrote runs succesfully but in between the slicer hangs asking for to wait or force quit. how to avoid? The module purpos…

---

## [MSB8066 Building Error while building slicer latest version in Win11 22h2](https://discourse.slicer.org/t/msb8066-building-error-while-building-slicer-latest-version-in-win11-22h2/28178)

<div class="topic-metadata">

**Author:** [@f1oNae](https://discourse.slicer.org/u/f1oNae)\
**Replies:** 1\
**Last updated:** [March 6, 2023, 4:20am UTC](https://discourse.slicer.org/t/msb8066-building-error-while-building-slicer-latest-version-in-win11-22h2/28178 "2023-03-06T04:20:17Z")

</div>

I am building slicer latest version with: CMake = 3.24.3 Visual studio = 2022 , toolset v143 QT = 5.15.2 OS = WIindows 11 22H2 git version 2.39.2.windows.1 however,I meet MSB8066 error at the end of slicer building…

---

## [Organization name and domain changed from NA-MIC to Slicer](https://discourse.slicer.org/t/organization-name-and-domain-changed-from-na-mic-to-slicer/28173)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 0\
**Last updated:** [March 4, 2023, 7:59pm UTC](https://discourse.slicer.org/t/organization-name-and-domain-changed-from-na-mic-to-slicer/28173 "2023-03-04T19:59:18Z")

</div>

Following the discussion below, the 3D Slicer application has updated the Slicer\_ORGANIZATION\_NAME from “NA-MIC” to “Slicer” and Slicer\_ORGANIZATION\_DOMAIN from www.na-mic.org to www.slicer.org. At the time of this chang…

---

## [Warning of observer from scripted module in Slicer 5.0.3](https://discourse.slicer.org/t/warning-of-observer-from-scripted-module-in-slicer-5-0-3/24735)

<div class="topic-metadata">

**Author:** [@wrc](https://discourse.slicer.org/u/wrc)\
**Replies:** 7\
**Last updated:** [March 3, 2023, 5:59am UTC](https://discourse.slicer.org/t/warning-of-observer-from-scripted-module-in-slicer-5-0-3/24735 "2023-03-03T05:59:17Z")

</div>

To show this warning: Modules-Developer Tools-Extension Wizard-Create Extension-Add Module Open the module just created, switch to another module, then back to this module, you can see the warning: /Applications/Slice…

---

## [Visualize transform between moving and fixed points](https://discourse.slicer.org/t/visualize-transform-between-moving-and-fixed-points/28148)

<div class="topic-metadata">

**Author:** [@JASON](https://discourse.slicer.org/u/JASON)\
**Replies:** 2\
**Last updated:** [March 3, 2023, 3:08am UTC](https://discourse.slicer.org/t/visualize-transform-between-moving-and-fixed-points/28148 "2023-03-03T03:08:20Z")

</div>

Hello! I wanted a way to visualize the connections between ‘moving’ and ‘fixed’ points (vtkMRMLMarkupsFiducialNode) and wrote a script that created a vtkMRMLMarkupsLineNode for each connection, but this was very slow ove…

---

## [Display external process output in module GUI](https://discourse.slicer.org/t/display-external-process-output-in-module-gui/27617)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 10\
**Last updated:** [March 3, 2023, 2:13am UTC](https://discourse.slicer.org/t/display-external-process-output-in-module-gui/27617 "2023-03-03T02:13:24Z")

</div>

Hi Andras, I wrote a scripted module and I am calling an external python using subprocess\_checkoutput. Is there a way to get the terminal output into a GUI component to let the user of a module know about the program i…

---

## [Slicer custom app build error](https://discourse.slicer.org/t/slicer-custom-app-build-error/28026)

<div class="topic-metadata">

**Author:** [@sm-philips](https://discourse.slicer.org/u/sm-philips)\
**Replies:** 9\
**Last updated:** [March 2, 2023, 9:34pm UTC](https://discourse.slicer.org/t/slicer-custom-app-build-error/28026 "2023-03-02T21:34:04Z")

</div>

Hello, I am trying to build a custom app following the instructions here: https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/ When building, I get the following error: Could not find a p…

---

## [Implementing PyTest-qt](https://discourse.slicer.org/t/implementing-pytest-qt/28096)

<div class="topic-metadata">

**Author:** [@hannahm](https://discourse.slicer.org/u/hannahm)\
**Replies:** 12\
**Last updated:** [March 2, 2023, 1:30pm UTC](https://discourse.slicer.org/t/implementing-pytest-qt/28096 "2023-03-02T13:30:06Z")

</div>

Are we able to implement PyTest-qt into our custom slicer app? I don’t know all of the discrepancies associated with the licensing but I would like to implement it to be able to run GUI based tests.

---

## [Building just the meshing code](https://discourse.slicer.org/t/building-just-the-meshing-code/28121)

<div class="topic-metadata">

**Author:** [@cesss](https://discourse.slicer.org/u/cesss)\
**Replies:** 0\
**Last updated:** [March 1, 2023, 5:37pm UTC](https://discourse.slicer.org/t/building-just-the-meshing-code/28121 "2023-03-01T17:37:33Z")

</div>

I’m interested in using the VMTK meshing code for my own CFD project. Is there any build procedure for building only the meshing code, and perhaps limiting the required dependencies to just the ones needed by the meshing…

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

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