# Development

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

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

**Page:** 33

---

## [NVIDIA Clara AI-Assisted Annotation Extension](https://discourse.slicer.org/t/nvidia-clara-ai-assisted-annotation-extension/7570)

<div class="topic-metadata">

**Author:** [@bsmarine](https://discourse.slicer.org/u/bsmarine)\
**Replies:** 35\
**Last updated:** [August 8, 2023, 2:58pm UTC](https://discourse.slicer.org/t/nvidia-clara-ai-assisted-annotation-extension/7570 "2023-08-08T14:58:26Z")

</div>

Does anyone know of a group working on Slicer extension for the recently released NVIDIA Clara Train SDK AI-Assisted Annotation? Our radiology department is eager to optimize our ground truth creation efforts and this lo…

---

## [vs2019 build problem, please help](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863)

<div class="topic-metadata">

**Author:** [@zswin](https://discourse.slicer.org/u/zswin)\
**Replies:** 14\
**Last updated:** [August 8, 2023, 9:22am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863 "2023-08-08T09:22:33Z")

</div>

Operating system: windows10 professional Slicer version: 5.2 I think Expected behavior: Actual behavior: got 8 errors while building(debug x64) BUILD WITH VS2019 cmake :3.26.4 Qt: 5.15.2 Err Msg Error MSB8066 “D:\\R\\CMa…

---

## [Interactively adding control point with a given label](https://discourse.slicer.org/t/interactively-adding-control-point-with-a-given-label/21598)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.slicer.org/u/CsatiZoltan)\
**Replies:** 35\
**Last updated:** [August 8, 2023, 5:56am UTC](https://discourse.slicer.org/t/interactively-adding-control-point-with-a-given-label/21598 "2023-08-08T05:56:50Z")

</div>

I build a user interface in which the user will click on the 3D scene (or the scenes of the three anatomical planes) and a fiducial node control point with a predetermined label will be placed. The problem is that I can…

---

## [May I know how to call methods in the cpp to get the name, birthday, gender, and series and series description of the loaded dicom data.Thanks!](https://discourse.slicer.org/t/may-i-know-how-to-call-methods-in-the-cpp-to-get-the-name-birthday-gender-and-series-and-series-description-of-the-loaded-dicom-data-thanks/11143)

<div class="topic-metadata">

**Author:** [@Shicong](https://discourse.slicer.org/u/Shicong)\
**Replies:** 11\
**Last updated:** [August 4, 2023, 7:25pm UTC](https://discourse.slicer.org/t/may-i-know-how-to-call-methods-in-the-cpp-to-get-the-name-birthday-gender-and-series-and-series-description-of-the-loaded-dicom-data-thanks/11143 "2023-08-04T19:25:27Z")

</div>

Well, I was calling the “qSlicerApplication::application()-\>dicomDatabase()” in the c++ code to get the currently loaded dicom data? i can see stdudy description information in dicom component, but the loading is done, …

---

## [What is the corresponding event for 'changing the number of 3D widget' in python script?](https://discourse.slicer.org/t/what-is-the-corresponding-event-for-changing-the-number-of-3d-widget-in-python-script/30934)

<div class="topic-metadata">

**Author:** [@Nick\_Jo](https://discourse.slicer.org/u/Nick_Jo)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 2:27pm UTC](https://discourse.slicer.org/t/what-is-the-corresponding-event-for-changing-the-number-of-3d-widget-in-python-script/30934 "2023-08-02T14:27:57Z")

</div>

Hello. I’ve been using the SlicerCustomAppTemplate to customize the slicer based on our needs. I want to apply the customization for ‘every’ 3D widget. I found the following code from the script repository. viewNode = …

---

## [Write/Read MRB and ACSV files in custom application](https://discourse.slicer.org/t/write-read-mrb-and-acsv-files-in-custom-application/30899)

<div class="topic-metadata">

**Author:** [@darabi](https://discourse.slicer.org/u/darabi)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 4:36am UTC](https://discourse.slicer.org/t/write-read-mrb-and-acsv-files-in-custom-application/30899 "2023-08-02T04:36:50Z")

</div>

Hello, in my custom app, I load multiple STL files as segmentations, generate a binary label map and a volume and now would like to store this intermediate result, preferrably as one file. I tried MRB and got this erro…

---

## [How to execute a python code from spyder in the python console that is inside Slicer?](https://discourse.slicer.org/t/how-to-execute-a-python-code-from-spyder-in-the-python-console-that-is-inside-slicer/30911)

<div class="topic-metadata">

**Author:** [@HBM](https://discourse.slicer.org/u/HBM)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 4:26am UTC](https://discourse.slicer.org/t/how-to-execute-a-python-code-from-spyder-in-the-python-console-that-is-inside-slicer/30911 "2023-08-02T04:26:48Z")

</div>

I have written my own image registration code in Spyder and want to run it in 3D slicer to see if my code works. How do I do this?

---

## [Scissors in console vs module](https://discourse.slicer.org/t/scissors-in-console-vs-module/28367)

<div class="topic-metadata">

**Author:** [@pearsonm](https://discourse.slicer.org/u/pearsonm)\
**Replies:** 6\
**Last updated:** [August 2, 2023, 12:12am UTC](https://discourse.slicer.org/t/scissors-in-console-vs-module/28367 "2023-08-02T00:12:00Z")

</div>

Hi, I am writing a module where I need to use threshold and scissors from the Segment Editor. If I run the following code in the console it works as expected and I can draw the ROI but when I copy the code to my module…

---

## [How to change the default background color of slicerCAT](https://discourse.slicer.org/t/how-to-change-the-default-background-color-of-slicercat/30882)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 4\
**Last updated:** [July 31, 2023, 3:55pm UTC](https://discourse.slicer.org/t/how-to-change-the-default-background-color-of-slicercat/30882 "2023-07-31T15:55:31Z")

</div>

I know the python script can help change the background color. Now I wan to change the color in the source code. Which file should I edit?

---

## [How to run python script in Slicer?](https://discourse.slicer.org/t/how-to-run-python-script-in-slicer/12352)

<div class="topic-metadata">

**Author:** [@SummerZ2020](https://discourse.slicer.org/u/SummerZ2020)\
**Replies:** 9\
**Last updated:** [July 31, 2023, 12:36pm UTC](https://discourse.slicer.org/t/how-to-run-python-script-in-slicer/12352 "2023-07-31T12:36:06Z")

</div>

Operating system:Win10 Slicer version:4.11.0(2020.6.15) Expected behavior:The saveLabel.py should be run when I run C:\\ProgramData\\NA-MIC\\Slicer 4.11.0-2020-06-15\>Slicer.exe --python--script C:\\Users\\310091560\\Desktop\\…

---

## [How to allocate the proportion of window occupied by each slicewidget?](https://discourse.slicer.org/t/how-to-allocate-the-proportion-of-window-occupied-by-each-slicewidget/30797)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 6\
**Last updated:** [July 31, 2023, 3:44am UTC](https://discourse.slicer.org/t/how-to-allocate-the-proportion-of-window-occupied-by-each-slicewidget/30797 "2023-07-31T03:44:11Z")

</div>

i use the code below to custom 3d slicer layout def custom\_layout(self): customLayout = """ \<layout type="vertical" split="true"\> \<item splitSize="150"\> \<layout type="horizontal"\> …

---

## [Custom build Slicer failed](https://discourse.slicer.org/t/custom-build-slicer-failed/6523)

<div class="topic-metadata">

**Author:** [@Littlehhh](https://discourse.slicer.org/u/Littlehhh)\
**Replies:** 25\
**Last updated:** [July 30, 2023, 6:08pm UTC](https://discourse.slicer.org/t/custom-build-slicer-failed/6523 "2023-07-30T18:08:42Z")

</div>

I use the SlicerCustomAppTemplate to custom the slicer. When I set the option like this when it build, “ctkAbstractPythonManager.h”: No such file or directory \[D:\\t2\\Slicer-build\\Base\\QTGUI\\qSlicerBaseQTGUI.vcxproj\]…

---

## [Problem setting output node for the mask volume effect in python](https://discourse.slicer.org/t/problem-setting-output-node-for-the-mask-volume-effect-in-python/30858)

<div class="topic-metadata">

**Author:** [@Anthony.Lombardi](https://discourse.slicer.org/u/Anthony.Lombardi)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 10:53pm UTC](https://discourse.slicer.org/t/problem-setting-output-node-for-the-mask-volume-effect-in-python/30858 "2023-07-28T22:53:09Z")

</div>

Hi all, I am trying to set the output volume node from the Mask Volume effect in Python. However, I am not having much luck trying to do this. I am just using the default parameters for the Mask Volume effect as they we…

---

## [Building custom app with SegmentRegistration extension](https://discourse.slicer.org/t/building-custom-app-with-segmentregistration-extension/30698)

<div class="topic-metadata">

**Author:** [@darabi](https://discourse.slicer.org/u/darabi)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 7:24am UTC](https://discourse.slicer.org/t/building-custom-app-with-segmentregistration-extension/30698 "2023-07-28T07:24:48Z")

</div>

Hello, I have successfully created and built a skeleton custom app and would now like to add the extensions which I need for the application. For this, I have added the necessary FetchContent\_Populate sections to CMakeL…

---

## [Is there a dicombrowser that supports image preview](https://discourse.slicer.org/t/is-there-a-dicombrowser-that-supports-image-preview/30779)

<div class="topic-metadata">

**Author:** [@icedream](https://discourse.slicer.org/u/icedream)\
**Replies:** 8\
**Last updated:** [July 28, 2023, 2:17am UTC](https://discourse.slicer.org/t/is-there-a-dicombrowser-that-supports-image-preview/30779 "2023-07-28T02:17:52Z")

</div>

I saw someone’s dicombrowser or dicom module with image preview on the forum before, but I couldn’t find similar features in the slicer plugin today,Do we have this type of extension？

---

## [Creating 3D model of rat leg µCT scans](https://discourse.slicer.org/t/creating-3d-model-of-rat-leg-ct-scans/30679)

<div class="topic-metadata">

**Author:** [@Roro82](https://discourse.slicer.org/u/Roro82)\
**Replies:** 6\
**Last updated:** [July 28, 2023, 2:16am UTC](https://discourse.slicer.org/t/creating-3d-model-of-rat-leg-ct-scans/30679 "2023-07-28T02:16:03Z")

</div>

Hello everyone, in our project we have to realize 3D modeling of a defect created on a rat leg based to µCT scans. This kind of modeling have already been done successfuly for other studies. However, the previous scans…

---

## [How can i make 'redo' & 'undo'?](https://discourse.slicer.org/t/how-can-i-make-redo-undo/30836)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 1\
**Last updated:** [July 28, 2023, 12:57am UTC](https://discourse.slicer.org/t/how-can-i-make-redo-undo/30836 "2023-07-28T00:57:38Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 Hi, slicer users I want to make redo & undo functions related to location movement in fiducialnode in 3d slicer. Is there any example or code I can refer to?

---

## [Issue with cmake when building extension for 3D Slicer](https://discourse.slicer.org/t/issue-with-cmake-when-building-extension-for-3d-slicer/30803)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 0\
**Last updated:** [July 26, 2023, 4:02pm UTC](https://discourse.slicer.org/t/issue-with-cmake-when-building-extension-for-3d-slicer/30803 "2023-07-26T16:02:11Z")

</div>

Hi guys, I’m trying to build the extension using cmake gui on Windows Extensions — 3D Slicer documentation Here is the error: Blockquote CMake Error: The source “C:/Users/hapha/OneDrive/Documents/python/SlicerTrack…

---

## [Issue when build an extension](https://discourse.slicer.org/t/issue-when-build-an-extension/30695)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 6\
**Last updated:** [July 25, 2023, 7:55pm UTC](https://discourse.slicer.org/t/issue-when-build-an-extension/30695 "2023-07-25T19:55:33Z")

</div>

Hi all, We’re trying to build the extension and publish it to extension Manager. It’s a Python base extension and I’m following the steps in this link for Windows. Extensions — 3D Slicer documentation I’m having trou…

---

## [Adding an icon to identify an extension](https://discourse.slicer.org/t/adding-an-icon-to-identify-an-extension/30562)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 11\
**Last updated:** [July 25, 2023, 4:03pm UTC](https://discourse.slicer.org/t/adding-an-icon-to-identify-an-extension/30562 "2023-07-25T16:03:08Z")

</div>

Hi, when having adding some of the diffusion-related extension to the favorites toolbar I see that all have the same default icon used for extensions, which makes it difficult to recognize them. What is the appropri…

---

## [Trouble with creating a custom module](https://discourse.slicer.org/t/trouble-with-creating-a-custom-module/29732)

<div class="topic-metadata">

**Author:** [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Replies:** 3\
**Last updated:** [July 25, 2023, 12:34pm UTC](https://discourse.slicer.org/t/trouble-with-creating-a-custom-module/29732 "2023-07-25T12:34:42Z")

</div>

I am currently trying to create my own module with ExtensionWizard. I used QTDesigner to create the UI, which is now mostly done. What I’m trying to do now is to get the module to save data to specific folders based on u…

---

## [Using Events on Python interface](https://discourse.slicer.org/t/using-events-on-python-interface/30533)

<div class="topic-metadata">

**Author:** [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Replies:** 5\
**Last updated:** [July 25, 2023, 12:32pm UTC](https://discourse.slicer.org/t/using-events-on-python-interface/30533 "2023-07-25T12:32:25Z")

</div>

Hello all. I’m trying to work with observer events. Mainly, I want to invoke a function when you click on a curve markup node. I looked in the reposity and found pointListNode.AddObserver(slicer.vtkMRMLMarkupsNode.Poin…

---

## [How to backport a feature to an older Slicer version](https://discourse.slicer.org/t/how-to-backport-a-feature-to-an-older-slicer-version/30594)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 9\
**Last updated:** [July 25, 2023, 12:19pm UTC](https://discourse.slicer.org/t/how-to-backport-a-feature-to-an-older-slicer-version/30594 "2023-07-25T12:19:07Z")

</div>

The requirement I received is to use a label to point to a specific spatial point in the 3D view. The latest Slicer version seems to have implemented this feature, but the client’s software was developed based on 5.1.…

---

## [How to set the Interval distance between slice node layout grid?](https://discourse.slicer.org/t/how-to-set-the-interval-distance-between-slice-node-layout-grid/30775)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 12:03pm UTC](https://discourse.slicer.org/t/how-to-set-the-interval-distance-between-slice-node-layout-grid/30775 "2023-07-25T12:03:13Z")

</div>

i use yellow window to show 1x6 grid layout of a T1 volume is it possible to set the inteval distance between the 1x6 grid layout below?(PS. the default value is 1 layer distance i found from data probe)

---

## [How to get the shortest path from a fiducialmarkupnode to a curvenode](https://discourse.slicer.org/t/how-to-get-the-shortest-path-from-a-fiducialmarkupnode-to-a-curvenode/30750)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 1:50am UTC](https://discourse.slicer.org/t/how-to-get-the-shortest-path-from-a-fiducialmarkupnode-to-a-curvenode/30750 "2023-07-25T01:50:30Z")

</div>

i create a curve use several control points (yellow arrow) and then i create a point (red arrow) i want to get the projection point from the point(right arrow) to the curve(yellow arrow) , whick means get the point i…

---

## [How to custom dicom browser header?](https://discourse.slicer.org/t/how-to-custom-dicom-browser-header/30755)

<div class="topic-metadata">

**Author:** [@icedream](https://discourse.slicer.org/u/icedream)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 1:08am UTC](https://discourse.slicer.org/t/how-to-custom-dicom-browser-header/30755 "2023-07-25T01:08:51Z")

</div>

i want to remove sex header from patient table,how to do it through python or c++ or other method? I found dicom-schema.sql has config ,but when i changed the data , it’s not work

---

## [Live image transfer via TCP/IP](https://discourse.slicer.org/t/live-image-transfer-via-tcp-ip/4866)

<div class="topic-metadata">

**Author:** [@shellyverde](https://discourse.slicer.org/u/shellyverde)\
**Replies:** 12\
**Last updated:** [July 24, 2023, 5:45pm UTC](https://discourse.slicer.org/t/live-image-transfer-via-tcp-ip/4866 "2023-07-24T17:45:29Z")

</div>

Operating system: Windows Slicer version: 4.8 Hi, I need to connect a device with Slicer through TCP/IP socket connection. The device runs in real time and the data from the device need to be sent to Slicer in every c…

---

## [Change spacing of segment using Python](https://discourse.slicer.org/t/change-spacing-of-segment-using-python/30499)

<div class="topic-metadata">

**Author:** [@ahmad\_alminnawi](https://discourse.slicer.org/u/ahmad_alminnawi)\
**Replies:** 10\
**Last updated:** [July 23, 2023, 12:11pm UTC](https://discourse.slicer.org/t/change-spacing-of-segment-using-python/30499 "2023-07-23T12:11:51Z")

</div>

Hi all, I would like to specify the spacing of a segment i am creating using python. Manually, I can do so using “specify geometry” as seen here Segmentations — 3D Slicer documentation under " Editing a segmentation i…

---

## [How to listen to mouse left button click event on slicerview](https://discourse.slicer.org/t/how-to-listen-to-mouse-left-button-click-event-on-slicerview/30724)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [July 23, 2023, 7:10am UTC](https://discourse.slicer.org/t/how-to-listen-to-mouse-left-button-click-event-on-slicerview/30724 "2023-07-23T07:10:42Z")

</div>

The requirement I received is to add mouse left click event listening only on the green window,then record the volume position information in a list,i don’t known how to add mouse left click event listening only on the…

---

## [Code autocompletion on VSCode fails](https://discourse.slicer.org/t/code-autocompletion-on-vscode-fails/26725)

<div class="topic-metadata">

**Author:** [@Alistair\_McCutcheon](https://discourse.slicer.org/u/Alistair_McCutcheon)\
**Replies:** 4\
**Last updated:** [July 21, 2023, 10:37pm UTC](https://discourse.slicer.org/t/code-autocompletion-on-vscode-fails/26725 "2023-07-21T22:37:44Z")

</div>

Problem: I’m trying to use VSCode to develop a Slicer extension. This is my first time using Slicer. I am trying to set up my development environment such that the code has typical autocomplete functions. I am using Ubu…

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

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