# Development

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

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

**Page:** 29

---

## [The dark slice problem in the Nifti formant?](https://discourse.slicer.org/t/the-dark-slice-problem-in-the-nifti-formant/32688)

<div class="topic-metadata">

**Author:** [@Berk\_Gezgin](https://discourse.slicer.org/u/Berk_Gezgin)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 6:10am UTC](https://discourse.slicer.org/t/the-dark-slice-problem-in-the-nifti-formant/32688 "2023-11-09T06:10:07Z")

</div>

Hello everyone, first of all. I am dealing with a cbct image in nii.gz format. This image has a filling in one tooth. When I save these slices in png format, I get a dark image. However, other slices turn into png forma…

---

## [Projecting points to the positive external surface](https://discourse.slicer.org/t/projecting-points-to-the-positive-external-surface/32593)

<div class="topic-metadata">

**Author:** [@chz31](https://discourse.slicer.org/u/chz31)\
**Replies:** 6\
**Last updated:** [November 9, 2023, 1:25am UTC](https://discourse.slicer.org/t/projecting-points-to-the-positive-external-surface/32593 "2023-11-09T01:25:13Z")

</div>

Dear all, I am trying to register and deform a surgical plate (roughly pre-registered using a few discrete landmarks) to adapt to the surface of the orbit. The plate has a thickness. You can see that some parts of the p…

---

## [Custom application launcher with modules](https://discourse.slicer.org/t/custom-application-launcher-with-modules/32682)

<div class="topic-metadata">

**Author:** [@1116](https://discourse.slicer.org/u/1116)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 12:08am UTC](https://discourse.slicer.org/t/custom-application-launcher-with-modules/32682 "2023-11-09T00:08:33Z")

</div>

Hello, I am trying to create an application launcher with custom modules. I want the modules loaded in slicer already when the custom application is installed by launcher. I found a similar topic \[Customized applicatio…

---

## [Real Time Orientation Changing Through Python](https://discourse.slicer.org/t/real-time-orientation-changing-through-python/32648)

<div class="topic-metadata">

**Author:** [@floppygator45](https://discourse.slicer.org/u/floppygator45)\
**Replies:** 2\
**Last updated:** [November 7, 2023, 9:46pm UTC](https://discourse.slicer.org/t/real-time-orientation-changing-through-python/32648 "2023-11-07T21:46:50Z")

</div>

Relatively new to 3D slicer. I have been looking at the reference guide that 3dslicer provided and found 3D object orientation can be changed through python. Currently this is the code I have where it prints a random yaw…

---

## [Keyboard shortcut assigned to a push button](https://discourse.slicer.org/t/keyboard-shortcut-assigned-to-a-push-button/32650)

<div class="topic-metadata">

**Author:** [@laurentletg](https://discourse.slicer.org/u/laurentletg)\
**Replies:** 0\
**Last updated:** [November 7, 2023, 8:50pm UTC](https://discourse.slicer.org/t/keyboard-shortcut-assigned-to-a-push-button/32650 "2023-11-07T20:50:26Z")

</div>

Hello, I’ve seen examples of how to assign keyboard shortcuts in the forum and the script repository. I was wondering if there is a quick way to simply assign a keyboard shortcut to an existing push button (without nece…

---

## [Adding Pitch and Roll to 3D orientation changing using python](https://discourse.slicer.org/t/adding-pitch-and-roll-to-3d-orientation-changing-using-python/32649)

<div class="topic-metadata">

**Author:** [@floppygator45](https://discourse.slicer.org/u/floppygator45)\
**Replies:** 0\
**Last updated:** [November 7, 2023, 6:53pm UTC](https://discourse.slicer.org/t/adding-pitch-and-roll-to-3d-orientation-changing-using-python/32649 "2023-11-07T18:53:33Z")

</div>

I am currently able to get yaw orientation manipulation working using python for the 3D view. When I try and implement Pitch or Roll the code breaks and gives an error when I try and run it in 3D slicer. The current code…

---

## [External dependency import failing in DiffusionQC Python test](https://discourse.slicer.org/t/external-dependency-import-failing-in-diffusionqc-python-test/32645)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 0\
**Last updated:** [November 7, 2023, 4:55pm UTC](https://discourse.slicer.org/t/external-dependency-import-failing-in-diffusionqc-python-test/32645 "2023-11-07T16:55:41Z")

</div>

Hi, I’ve noticed that the DiffusionQC extension module’s test has been failing for a while: CDash also mentioned in: Fix import errors by lassoan · Pull Request #47 · pnlbwh/SlicerDiffusionQC · GitHub And this happe…

---

## [How to get real-time python script or command when you operate in 3D slicer](https://discourse.slicer.org/t/how-to-get-real-time-python-script-or-command-when-you-operate-in-3d-slicer/32625)

<div class="topic-metadata">

**Author:** [@Chuan](https://discourse.slicer.org/u/Chuan)\
**Replies:** 2\
**Last updated:** [November 7, 2023, 11:29am UTC](https://discourse.slicer.org/t/how-to-get-real-time-python-script-or-command-when-you-operate-in-3d-slicer/32625 "2023-11-07T11:29:41Z")

</div>

Hi, I would like to discuss is it possible for 3D slicer to generate real-time python code when you do some operation in 3D slicer? I know we can give python codes to 3D slicer through python interactor. But as a begin…

---

## [Extension versioning](https://discourse.slicer.org/t/extension-versioning/32215)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 4\
**Last updated:** [November 6, 2023, 2:19pm UTC](https://discourse.slicer.org/t/extension-versioning/32215 "2023-11-06T14:19:32Z")

</div>

Hi, I am using 3D Slicer 5.2.2, and have a number of extensions installed, including SlicerDMRI: GitHub - SlicerDMRI/SlicerDMRI: Diffusion MRI analysis and visualization in 3D Slicer open source medical imaging platfor…

---

## [Developing Slicer modules in Visual Studio / Visual Studio Code?](https://discourse.slicer.org/t/developing-slicer-modules-in-visual-studio-visual-studio-code/9496)

<div class="topic-metadata">

**Author:** [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Replies:** 24\
**Last updated:** [November 6, 2023, 10:42am UTC](https://discourse.slicer.org/t/developing-slicer-modules-in-visual-studio-visual-studio-code/9496 "2023-11-06T10:42:30Z")

</div>

I´m a newbie in module scripting and I should like to manage code with Visual Studio or Visual Studio Code instead of Notepad++. How can I setup VS/VSC for this porpuse? Is there any tutorial o video about? Thanks on a…

---

## [Fixing extension testing failures](https://discourse.slicer.org/t/fixing-extension-testing-failures/32584)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 2\
**Last updated:** [November 6, 2023, 12:10am UTC](https://discourse.slicer.org/t/fixing-extension-testing-failures/32584 "2023-11-06T00:10:11Z")

</div>

Hi, there are a number of tests in the SlicerDMRI extension build that I would like to fix: CDash Some of them (e.g. py\_TractographyExportPLY, py\_TractographyDownsample) report a short message saying \[/Users/svc-dash…

---

## [Numpy array from slice, then get back to RAS coordinate system](https://discourse.slicer.org/t/numpy-array-from-slice-then-get-back-to-ras-coordinate-system/32592)

<div class="topic-metadata">

**Author:** [@David\_Roberto\_Brenes](https://discourse.slicer.org/u/David_Roberto_Brenes)\
**Replies:** 1\
**Last updated:** [November 3, 2023, 11:46pm UTC](https://discourse.slicer.org/t/numpy-array-from-slice-then-get-back-to-ras-coordinate-system/32592 "2023-11-03T23:46:42Z")

</div>

Hello, Similar to this post (link) I am trying to: Visualize in the view node a slice that is perpendicular to a curve defined by two control points Generate a numpy array from slice (similar to the straighten volume …

---

## [Extension is not showing up after installing from zip file](https://discourse.slicer.org/t/extension-is-not-showing-up-after-installing-from-zip-file/32516)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 3:44am UTC](https://discourse.slicer.org/t/extension-is-not-showing-up-after-installing-from-zip-file/32516 "2023-11-03T03:44:42Z")

</div>

Hi guys, I followed the extension build process here Extensions — 3D Slicer documentation and got the zip file to work on 5.3 preview before. Now we have 5.4 stable, I installed it, pull the new source code and rebuil…

---

## [How to color volume node use lookup table or other method?](https://discourse.slicer.org/t/how-to-color-volume-node-use-lookup-table-or-other-method/32552)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 3:18am UTC](https://discourse.slicer.org/t/how-to-color-volume-node-use-lookup-table-or-other-method/32552 "2023-11-03T03:18:29Z")

</div>

i have a volume with voxel data value like 0.0001,0.001,0.02,0.1,1,the boss wants to map the voxel data value use log function like 0.0001 maps to log(0.0001),0.02 maps to log(0,02),and than color the volume using jet . …

---

## [Creation of Models with the Module ModelMaker from the Python console](https://discourse.slicer.org/t/creation-of-models-with-the-module-modelmaker-from-the-python-console/32561)

<div class="topic-metadata">

**Author:** [@jhernandezr](https://discourse.slicer.org/u/jhernandezr)\
**Replies:** 0\
**Last updated:** [November 2, 2023, 3:34pm UTC](https://discourse.slicer.org/t/creation-of-models-with-the-module-modelmaker-from-the-python-console/32561 "2023-11-02T15:34:02Z")

</div>

Hello! My team and I are working on the study of segmentations as vtk volumes, however we are trying to automatize the process with the python console from slicer. We have thought that, once we have loaded the nifti vol…

---

## [How to configure VR controls interactions in Python?](https://discourse.slicer.org/t/how-to-configure-vr-controls-interactions-in-python/29312)

<div class="topic-metadata">

**Author:** [@guillaumarie](https://discourse.slicer.org/u/guillaumarie)\
**Replies:** 5\
**Last updated:** [November 2, 2023, 1:21pm UTC](https://discourse.slicer.org/t/how-to-configure-vr-controls-interactions-in-python/29312 "2023-11-02T13:21:25Z")

</div>

Hi, I’m developing a 3DSlicer module using the virtual reality module and a Valve Index headset. I’m trying to configure my own controller interactions in order to: Deactivate all default VR controls Add new customiz…

---

## [Make event Transform matrix not modified](https://discourse.slicer.org/t/make-event-transform-matrix-not-modified/32541)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 3\
**Last updated:** [November 2, 2023, 4:44am UTC](https://discourse.slicer.org/t/make-event-transform-matrix-not-modified/32541 "2023-11-02T04:44:03Z")

</div>

Hi all I would like to track a specific transform matrix and change the Qt label to ‘on’ when it changing and to ‘off’ when it doesn’t. I’ve implemented the code below, but is there a more efficient way? I’m particula…

---

## [Toggle visibility of models in a folder using scripting](https://discourse.slicer.org/t/toggle-visibility-of-models-in-a-folder-using-scripting/32497)

<div class="topic-metadata">

**Author:** [@Chris\_Klink](https://discourse.slicer.org/u/Chris_Klink)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 2:57pm UTC](https://discourse.slicer.org/t/toggle-visibility-of-models-in-a-folder-using-scripting/32497 "2023-11-01T14:57:39Z")

</div>

Hi Experts, I’m trying to toggle the visibility of individual models inside a folder from a Python script. I can toggle the visibility of the entire folder, but all examples I can find of how to loop over the children d…

---

## [Minimal draw tube effect](https://discourse.slicer.org/t/minimal-draw-tube-effect/32511)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 6\
**Last updated:** [October 31, 2023, 9:59pm UTC](https://discourse.slicer.org/t/minimal-draw-tube-effect/32511 "2023-10-31T21:59:41Z")

</div>

Hi I have a side panel with two widgets laid out vertically: first one is a groupbox to execute simplified segmentation actions by using the second widget, a qMRMLSegmentEditorWidget, that’s hidden. I have to use the d…

---

## [Testing without launching graphical components](https://discourse.slicer.org/t/testing-without-launching-graphical-components/32506)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 2\
**Last updated:** [October 31, 2023, 8:34pm UTC](https://discourse.slicer.org/t/testing-without-launching-graphical-components/32506 "2023-10-31T20:34:15Z")

</div>

Hi, I am trying to set up a GHA workflow to test the SlicerDMRI extension. ctest is effectively finding and triggering the tests so far: ENH: Test build · SlicerDMRI/SlicerDMRI@576ae7c · GitHub However, as I’ve realiz…

---

## [Nifti segmentation to dicom-seg in a batch with python](https://discourse.slicer.org/t/nifti-segmentation-to-dicom-seg-in-a-batch-with-python/32488)

<div class="topic-metadata">

**Author:** [@gdvp](https://discourse.slicer.org/u/gdvp)\
**Replies:** 2\
**Last updated:** [October 31, 2023, 11:00am UTC](https://discourse.slicer.org/t/nifti-segmentation-to-dicom-seg-in-a-batch-with-python/32488 "2023-10-31T11:00:13Z")

</div>

Hi, I use 3D slicer for a while, but am rather new with the python usage in slicer. I have to convert a lot of nifti files to dicom-seg format, which is a cumbersome task, so I wanted to do that in a batch as the nifti…

---

## [Segmentation - Drawing Tablet](https://discourse.slicer.org/t/segmentation-drawing-tablet/842)

<div class="topic-metadata">

**Author:** [@Kserralde](https://discourse.slicer.org/u/Kserralde)\
**Replies:** 39\
**Last updated:** [October 7, 2021, 2:24pm UTC](https://discourse.slicer.org/t/segmentation-drawing-tablet/842 "2021-10-07T14:24:19Z")

</div>

I’ve used 3D slicer for generating 3D models. I’ve used the wacom stylus and tablet for drawing the segments. Wacom has a tablet where you can draw directly on the screen, which I think would be really useful in the se…

---

## [Text color in python interactor](https://discourse.slicer.org/t/text-color-in-python-interactor/32422)

<div class="topic-metadata">

**Author:** [@bserrano](https://discourse.slicer.org/u/bserrano)\
**Replies:** 4\
**Last updated:** [October 27, 2023, 6:52am UTC](https://discourse.slicer.org/t/text-color-in-python-interactor/32422 "2023-10-27T06:52:26Z")

</div>

Hi all, How can I print text in the python interactor in different colors?

---

## [How to access advanced option in code?](https://discourse.slicer.org/t/how-to-access-advanced-option-in-code/32418)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 4:03am UTC](https://discourse.slicer.org/t/how-to-access-advanced-option-in-code/32418 "2023-10-26T04:03:39Z")

</div>

Operating system: window 10 Slicer version: 5.4 Where is the function that accesses the ‘control point labels’ option in this advance tab inherited? I don’t seem to see any related functions in ‘displayNode’s funct…

---

## [How to export segment by LPS coordinate system?](https://discourse.slicer.org/t/how-to-export-segment-by-lps-coordinate-system/32391)

<div class="topic-metadata">

**Author:** [@derekcbr](https://discourse.slicer.org/u/derekcbr)\
**Replies:** 1\
**Last updated:** [October 24, 2023, 6:10pm UTC](https://discourse.slicer.org/t/how-to-export-segment-by-lps-coordinate-system/32391 "2023-10-24T18:10:37Z")

</div>

Is there api to export segment by LPS? # Get segmentation node (replace 'Segmentation' with the name of your segmentation node in the scene) segmentation\_node = slicer.util.getNode('Segmentation') …

---

## [Can I transfer the RAS coordinate system back to LPS](https://discourse.slicer.org/t/can-i-transfer-the-ras-coordinate-system-back-to-lps/32394)

<div class="topic-metadata">

**Author:** [@Benjamin-JZ](https://discourse.slicer.org/u/Benjamin-JZ)\
**Replies:** 3\
**Last updated:** [October 24, 2023, 1:21pm UTC](https://discourse.slicer.org/t/can-i-transfer-the-ras-coordinate-system-back-to-lps/32394 "2023-10-24T13:21:32Z")

</div>

I know that patient data has been converted to values in the RAS coordinate system after being imported into 3Dslicer. For example, I have a DICOM metadata with Origin \[-202, -33,100\]. But the Origin obtained from the vt…

---

## [Calculation of Multi-Planar Reconstruction axis](https://discourse.slicer.org/t/calculation-of-multi-planar-reconstruction-axis/31563)

<div class="topic-metadata">

**Author:** [@Pinyu\_Huang](https://discourse.slicer.org/u/Pinyu_Huang)\
**Replies:** 10\
**Last updated:** [October 24, 2023, 1:09pm UTC](https://discourse.slicer.org/t/calculation-of-multi-planar-reconstruction-axis/31563 "2023-10-24T13:09:03Z")

</div>

For example. If I rotate the axial-axis in sagittal plane, as a result, the axial plane will interpolate as the computer will capture the angle and point, and the axial-axis in coronal plane will rotate in some rules. I…

---

## [Exporting segments without the total volume of the CT scan](https://discourse.slicer.org/t/exporting-segments-without-the-total-volume-of-the-ct-scan/32374)

<div class="topic-metadata">

**Author:** [@orla001](https://discourse.slicer.org/u/orla001)\
**Replies:** 3\
**Last updated:** [October 23, 2023, 3:57pm UTC](https://discourse.slicer.org/t/exporting-segments-without-the-total-volume-of-the-ct-scan/32374 "2023-10-23T15:57:29Z")

</div>

Is there any way to export a segment without the empty space outside of that segment? When I export a segment as nrrd and convert it to a DICOM, the unsegmented/empty space of the CT scan turns into a grey background …

---

## [New Arabic translation of 3D Slicer](https://discourse.slicer.org/t/new-arabic-translation-of-3d-slicer/31665)

<div class="topic-metadata">

**Author:** [@Shadin\_Omari](https://discourse.slicer.org/u/Shadin_Omari)\
**Replies:** 20\
**Last updated:** [October 19, 2023, 3:08pm UTC](https://discourse.slicer.org/t/new-arabic-translation-of-3d-slicer/31665 "2023-10-19T15:08:41Z")

</div>

Hello, I’ve finished translating the project from English to Arabic language, the 3D Slicer…now what’s next, how are you going to pay for me??

---

## [Can we add a or mutli Label to a segment through segment editor?](https://discourse.slicer.org/t/can-we-add-a-or-mutli-label-to-a-segment-through-segment-editor/31838)

<div class="topic-metadata">

**Author:** [@Benjamin-JZ](https://discourse.slicer.org/u/Benjamin-JZ)\
**Replies:** 10\
**Last updated:** [October 17, 2023, 3:39am UTC](https://discourse.slicer.org/t/can-we-add-a-or-mutli-label-to-a-segment-through-segment-editor/31838 "2023-10-17T03:39:26Z")

</div>

i plan to make a function which was a variable to record made label of segment by uesr.the best state was that relationship was one to one between label and segment.can we do it? please tell me which material i need…

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

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