# Development

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

---

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

---

## [Calling cli with specific python path](https://discourse.slicer.org/t/calling-cli-with-specific-python-path/32278)

<div class="topic-metadata">

**Author:** [@Gaelle\_Leroux](https://discourse.slicer.org/u/Gaelle_Leroux)\
**Replies:** 2\
**Last updated:** [October 17, 2023, 8:34pm UTC](https://discourse.slicer.org/t/calling-cli-with-specific-python-path/32278 "2023-10-17T20:34:24Z")

</div>

Hi @lassoan, @jcfr ! We want to run a cli with specific dependencies not compatible with slicerPython, is it possible to specify the python path when we use the slicer.cli.run ? Right now it will run with python-real. …

---

## [How can I update the contents of the warning window in Slicer?](https://discourse.slicer.org/t/how-can-i-update-the-contents-of-the-warning-window-in-slicer/32238)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 3\
**Last updated:** [October 16, 2023, 11:43pm UTC](https://discourse.slicer.org/t/how-can-i-update-the-contents-of-the-warning-window-in-slicer/32238 "2023-10-16T23:43:36Z")

</div>

Operating system:window 10 Slicer version: 5.4 I made it to display a notification window via QtMessageBox when certain conditions are not met. But how can I update a new alert window to an existing alert window wit…

---

## [Volume rendering colorized with segmentation](https://discourse.slicer.org/t/volume-rendering-colorized-with-segmentation/26689)

<div class="topic-metadata">

**Author:** [@pieper](https://discourse.slicer.org/u/pieper)\
**Replies:** 26\
**Last updated:** [October 16, 2023, 7:02pm UTC](https://discourse.slicer.org/t/volume-rendering-colorized-with-segmentation/26689 "2023-10-16T19:02:40Z")

</div>

I’d like to have a follow up chat about segmentation rendering. I found the vtk shader bug we discussed before so now shading can be made to work (no PR yet, but it’s a small set of changes).

---

## [Get current mouse coordinates in a slice view](https://discourse.slicer.org/t/get-current-mouse-coordinates-in-a-slice-view/32213)

<div class="topic-metadata">

**Author:** [@susk](https://discourse.slicer.org/u/susk)\
**Replies:** 0\
**Last updated:** [October 13, 2023, 2:22pm UTC](https://discourse.slicer.org/t/get-current-mouse-coordinates-in-a-slice-view/32213 "2023-10-13T14:22:37Z")

</div>

I’ve been using the following example in the code repository to get the mouse position when the user moves the mouse: get-current-mouse-coordinates-in-a-slice-view. In Slicer 5.2.2, this prints the cursor position when t…

---

## [How to export compile commands?](https://discourse.slicer.org/t/how-to-export-compile-commands/31410)

<div class="topic-metadata">

**Author:** [@somso2e](https://discourse.slicer.org/u/somso2e)\
**Replies:** 1\
**Last updated:** [October 13, 2023, 9:24am UTC](https://discourse.slicer.org/t/how-to-export-compile-commands/31410 "2023-10-13T09:24:56Z")

</div>

Hi clangd depends on the compile\_commands.json file to work but I can’t generate it by setting the CMAKE\_EXPORT\_COMPILE\_COMMANDS flag like below. cmake -DCMAKE\_EXPORT\_COMPILE\_COMMANDS:BOOL=ON Slicer-SuperBuild-Debug/

---

## [ctkMenuButton vs QToolButton with MenuButtonPopup mode](https://discourse.slicer.org/t/ctkmenubutton-vs-qtoolbutton-with-menubuttonpopup-mode/32187)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 9:04pm UTC](https://discourse.slicer.org/t/ctkmenubutton-vs-qtoolbutton-with-menubuttonpopup-mode/32187 "2023-10-12T21:04:00Z")

</div>

Does anyone know why one might use a ctkMenuButton over a QToolButton with MenuButtonPopup mode set? They appear to be virtually the same so I was curious why ctkMenuButton might have been created and what advantages it…

---

## [Radiomics cli parameters](https://discourse.slicer.org/t/radiomics-cli-parameters/32175)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 5:57am UTC](https://discourse.slicer.org/t/radiomics-cli-parameters/32175 "2023-10-12T05:57:31Z")

</div>

Hi, I am trying to do batch processing to extract radiomic features using the radiomicscli module. The error are: /media/useradmin/Disk2/Nathaniel/Testing\_radiomics/APT034 \[VTK\] No input data assigned to “input Source…

---

## [Training Segmentation Model with Custom Labels in MonaILabel](https://discourse.slicer.org/t/training-segmentation-model-with-custom-labels-in-monailabel/32152)

<div class="topic-metadata">

**Author:** [@FWSU](https://discourse.slicer.org/u/FWSU)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 7:01pm UTC](https://discourse.slicer.org/t/training-segmentation-model-with-custom-labels-in-monailabel/32152 "2023-10-11T19:01:37Z")

</div>

I am looking to train a segmentation model using MonaILabel. However, instead of using the pre-existing labels such as (‘kidney\_left’, ‘kidney\_right’, etc.), I want to use custom labels (‘label1’, ‘label2’, ‘label3’). M…

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

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