# Development

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

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

**Page:** 51

---

## [How to generate a surface mesh from segmentation](https://discourse.slicer.org/t/how-to-generate-a-surface-mesh-from-segmentation/24751)

<div class="topic-metadata">

**Author:** [@joanne40226](https://discourse.slicer.org/u/joanne40226)\
**Replies:** 7\
**Last updated:** [August 17, 2022, 5:19am UTC](https://discourse.slicer.org/t/how-to-generate-a-surface-mesh-from-segmentation/24751 "2022-08-17T05:19:57Z")

</div>

Hi, recently i’m building mesh from segmetation. However i only need the informations of the voxel/vertex on the surface. So, i’m wondering if there is a way to only generate surface mesh from a segmented 3D model? Than…

---

## [Change crosshair color?](https://discourse.slicer.org/t/change-crosshair-color/23966)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 9\
**Last updated:** [August 17, 2022, 4:12am UTC](https://discourse.slicer.org/t/change-crosshair-color/23966 "2022-08-17T04:12:10Z")

</div>

Is there a way in python to change the color of the crosshair from yellow to something else?

---

## [Add a custom widget to a layout](https://discourse.slicer.org/t/add-a-custom-widget-to-a-layout/24784)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 2\
**Last updated:** [August 16, 2022, 3:07pm UTC](https://discourse.slicer.org/t/add-a-custom-widget-to-a-layout/24784 "2022-08-16T15:07:00Z")

</div>

I tried this code to make a custom layout (with a custom widget) for a scripted module and it doesn’t work: #get custom layout widgets containingListWidget = slicer.util.loadUI(self.resourcePath('UI/containingLi…

---

## [OpenIGTLinkIF module is not loaded, when I am debugging the IGT](https://discourse.slicer.org/t/openigtlinkif-module-is-not-loaded-when-i-am-debugging-the-igt/24781)

<div class="topic-metadata">

**Author:** [@SlicerIsGood](https://discourse.slicer.org/u/SlicerIsGood)\
**Replies:** 0\
**Last updated:** [August 16, 2022, 9:38am UTC](https://discourse.slicer.org/t/openigtlinkif-module-is-not-loaded-when-i-am-debugging-the-igt/24781 "2022-08-16T09:38:23Z")

</div>

When I use my custom version, and I want to apply the extension OpenIGTLinkIF, whatever from extension store or install from zipped file downloaded from extension website with the correct version, the module always be no…

---

## [SlicerLeapMotionControl in Slicer 4.11.0](https://discourse.slicer.org/t/slicerleapmotioncontrol-in-slicer-4-11-0/6770)

<div class="topic-metadata">

**Author:** [@JaceYang](https://discourse.slicer.org/u/JaceYang)\
**Replies:** 16\
**Last updated:** [August 15, 2022, 4:22pm UTC](https://discourse.slicer.org/t/slicerleapmotioncontrol-in-slicer-4-11-0/6770 "2022-08-15T16:22:52Z")

</div>

Operating system:windows10 Slicer version:4.11.0 Expected behavior: \*\*SlicerLeapMotionControl\*\*can work Actual behavior:SlicerLeapMotionControl cannot work I add the src directory to the additional module paths,but t…

---

## [Building SlicerIGT exten](https://discourse.slicer.org/t/building-slicerigt-exten/24749)

<div class="topic-metadata">

**Author:** [@SlicerIsGood](https://discourse.slicer.org/u/SlicerIsGood)\
**Replies:** 3\
**Last updated:** [August 15, 2022, 1:53am UTC](https://discourse.slicer.org/t/building-slicerigt-exten/24749 "2022-08-15T01:53:12Z")

</div>

in windows vs2022 CMake Error at CMakeLists.txt:25 (find\_package): By not providing "FindSlicerIGSIO.cmake" in CMAKE\_MODULE\_PATH this project has asked CMake to find a package configuration file provided by "Slice…

---

## [Why does this trivial call result in a crash?](https://discourse.slicer.org/t/why-does-this-trivial-call-result-in-a-crash/24742)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 2\
**Last updated:** [August 14, 2022, 8:39am UTC](https://discourse.slicer.org/t/why-does-this-trivial-call-result-in-a-crash/24742 "2022-08-14T08:39:59Z")

</div>

I am trying to create a module in C++ and am stumbling on a crash on line 4 below : vtkMRMLNode \* fiducialNode = d-\>inputFiducialSelector-\>currentNode(); vtkMRMLMarkupsFiducialNode \* fiducialNodeReal = vtkMRMLMarkupsFid…

---

## [Showing mouse interaction toolbar in custom module](https://discourse.slicer.org/t/showing-mouse-interaction-toolbar-in-custom-module/24725)

<div class="topic-metadata">

**Author:** [@Vincebisca](https://discourse.slicer.org/u/Vincebisca)\
**Replies:** 4\
**Last updated:** [August 12, 2022, 4:29pm UTC](https://discourse.slicer.org/t/showing-mouse-interaction-toolbar-in-custom-module/24725 "2022-08-12T16:29:51Z")

</div>

Hello everyone, As part of the development of a custom interface in 3D Slicer, I would like to show the mouse interaction toolbar. Indeed, I use the following structure to determine which toolbars are shown in the inter…

---

## [How to hide terminal(WIN32\_CONSOLE) window in release build mode?](https://discourse.slicer.org/t/how-to-hide-terminal-win32-console-window-in-release-build-mode/22532)

<div class="topic-metadata">

**Author:** [@Dhaval](https://discourse.slicer.org/u/Dhaval)\
**Replies:** 12\
**Last updated:** [August 11, 2022, 8:37pm UTC](https://discourse.slicer.org/t/how-to-hide-terminal-win32-console-window-in-release-build-mode/22532 "2022-08-11T20:37:37Z")

</div>

I build release mode. When i run Slicer, it still have terminal window. How to hide terminal in release build mode?( Windows 10) Slicer\_BUILD\_WIN32\_CONSOLE = OFF (But the terminal still exists.)

---

## [Does Slicer support 2d slice view shift between different pics whit mouse left key pressed and drag up and down?](https://discourse.slicer.org/t/does-slicer-support-2d-slice-view-shift-between-different-pics-whit-mouse-left-key-pressed-and-drag-up-and-down/24572)

<div class="topic-metadata">

**Author:** [@zhang\_ming](https://discourse.slicer.org/u/zhang_ming)\
**Replies:** 14\
**Last updated:** [August 11, 2022, 6:04am UTC](https://discourse.slicer.org/t/does-slicer-support-2d-slice-view-shift-between-different-pics-whit-mouse-left-key-pressed-and-drag-up-and-down/24572 "2022-08-11T06:04:39Z")

</div>

like radioAnt supported. we found that many doctors want to use Slicer with left mouse button pressed and drag up and down to shift betweeen 2d dicom pics.

---

## [Slicer quarterly releases](https://discourse.slicer.org/t/slicer-quarterly-releases/24712)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 1\
**Last updated:** [August 10, 2022, 10:35pm UTC](https://discourse.slicer.org/t/slicer-quarterly-releases/24712 "2022-08-10T22:35:45Z")

</div>

With the past talk of quarterly releases of Slicer stable, is that still the plan moving forward with Slicer 5? Slicer 5.0.2 packages were uploaded and available for download at https://download.slicer.org/ starting aro…

---

## [Slicer in a python pipeline (but not in the slicer python interpretor)](https://discourse.slicer.org/t/slicer-in-a-python-pipeline-but-not-in-the-slicer-python-interpretor/24709)

<div class="topic-metadata">

**Author:** [@Jean\_Jacquemier](https://discourse.slicer.org/u/Jean_Jacquemier)\
**Replies:** 1\
**Last updated:** [August 10, 2022, 2:01pm UTC](https://discourse.slicer.org/t/slicer-in-a-python-pipeline-but-not-in-the-slicer-python-interpretor/24709 "2022-08-10T14:01:14Z")

</div>

I would like to use slicer in a python pipeline that will be executed on a large cluster in a batch mode. I succeed to execute the python code on my laptop: thanks to the Slicer3D JupyterKernel kernel extention. thank…

---

## [Questions about the vesselness filtering function](https://discourse.slicer.org/t/questions-about-the-vesselness-filtering-function/24697)

<div class="topic-metadata">

**Author:** [@harrykwon0524](https://discourse.slicer.org/u/harrykwon0524)\
**Replies:** 0\
**Last updated:** [August 9, 2022, 4:17pm UTC](https://discourse.slicer.org/t/questions-about-the-vesselness-filtering-function/24697 "2022-08-09T16:17:40Z")

</div>

Hi I had questions regarding the vesselness filtering function embedded in vmtk extension How can I save the result of the vesselness filterness function? How can adding more seed points in the model result in creating…

---

## [How to change the volume rendering setting to make the rendering effect from picture1 to picture2](https://discourse.slicer.org/t/how-to-change-the-volume-rendering-setting-to-make-the-rendering-effect-from-picture1-to-picture2/24692)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [August 9, 2022, 1:03pm UTC](https://discourse.slicer.org/t/how-to-change-the-volume-rendering-setting-to-make-the-rendering-effect-from-picture1-to-picture2/24692 "2022-08-09T13:03:15Z")

</div>

picture1:obtain the vessel scalar volume node from VMTK,use preset \[Vesselness\] picture2:change vessel to segmentation,the rendering segmentation in 3D

---

## [Problems about package release version](https://discourse.slicer.org/t/problems-about-package-release-version/24691)

<div class="topic-metadata">

**Author:** [@zhang\_ming](https://discourse.slicer.org/u/zhang_ming)\
**Replies:** 1\
**Last updated:** [August 9, 2022, 12:26pm UTC](https://discourse.slicer.org/t/problems-about-package-release-version/24691 "2022-08-09T12:26:44Z")

</div>

Package Slicer (create installer package)¶ Start Visual Studio with the launcher: Slicer.exe --VisualStudioProject Select Release build configuration. In the “Solution Explorer”, right click on PACKAGE project (in th…

---

## [Converting DICOM sequence and its corresponding segmentation into world coordinates](https://discourse.slicer.org/t/converting-dicom-sequence-and-its-corresponding-segmentation-into-world-coordinates/21644)

<div class="topic-metadata">

**Author:** [@Dmitry\_Cherezov](https://discourse.slicer.org/u/Dmitry_Cherezov)\
**Replies:** 3\
**Last updated:** [August 9, 2022, 10:12am UTC](https://discourse.slicer.org/t/converting-dicom-sequence-and-its-corresponding-segmentation-into-world-coordinates/21644 "2022-08-09T10:12:40Z")

</div>

Operating system: Windows 10 Slicer version: 4.11.20210226 r29738 / 7a593c8 Dear Community, I need some help with Python coding in the 3DSlicer environment. The task is relatively simple, but I got lost in numerous m…

---

## [Tracking cursor movements to access voxel values](https://discourse.slicer.org/t/tracking-cursor-movements-to-access-voxel-values/24568)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.slicer.org/u/leo)\
**Replies:** 8\
**Last updated:** [August 8, 2022, 2:32pm UTC](https://discourse.slicer.org/t/tracking-cursor-movements-to-access-voxel-values/24568 "2022-08-08T14:32:17Z")

</div>

Hey everyone, I was trying to write a quick Pyton script to track the mouse movement with ‘Crosshair’ and return the voxel value using the ijk position. I ran the script within Slicer’s Python Interactor and launched Sl…

---

## [Calculate external contour for segment in segmentation](https://discourse.slicer.org/t/calculate-external-contour-for-segment-in-segmentation/24653)

<div class="topic-metadata">

**Author:** [@Mik](https://discourse.slicer.org/u/Mik)\
**Replies:** 3\
**Last updated:** [August 8, 2022, 9:34am UTC](https://discourse.slicer.org/t/calculate-external-contour-for-segment-in-segmentation/24653 "2022-08-08T09:34:37Z")

</div>

I’m trying to calculate external contour and then transform it into markups curve node.Here is a VTK example with such case. Position and orientation of camera are known. Segment polydata is white, background is black. C…

---

## [Transforming 4D Nifti files into .seq.nrrd files](https://discourse.slicer.org/t/transforming-4d-nifti-files-into-seq-nrrd-files/24652)

<div class="topic-metadata">

**Author:** [@XJGB](https://discourse.slicer.org/u/XJGB)\
**Replies:** 1\
**Last updated:** [August 8, 2022, 8:59am UTC](https://discourse.slicer.org/t/transforming-4d-nifti-files-into-seq-nrrd-files/24652 "2022-08-08T08:59:08Z")

</div>

Hi there, I wonder if there is a script to transform 4D nii files into seq.nnrd files to annalyze the Data with the sequences module? I have several 4D nii files and it would be very convenient being able to transform …

---

## [How to set up shortcuts from module on startup?](https://discourse.slicer.org/t/how-to-set-up-shortcuts-from-module-on-startup/7982)

<div class="topic-metadata">

**Author:** [@Amine](https://discourse.slicer.org/u/Amine)\
**Replies:** 8\
**Last updated:** [August 7, 2022, 7:50pm UTC](https://discourse.slicer.org/t/how-to-set-up-shortcuts-from-module-on-startup/7982 "2022-08-07T19:50:34Z")

</div>

Hi, to register keyboard shortcuts from a scripted module i have been putting the code in the setup method of my widget class, however there is a need to run each module to register its shortcuts, where should shortcut r…

---

## [How can I get the widget called "vtkMRMLSliceIntersectionWidget" in python?](https://discourse.slicer.org/t/how-can-i-get-the-widget-called-vtkmrmlsliceintersectionwidget-in-python/24661)

<div class="topic-metadata">

**Author:** [@zhang\_ming](https://discourse.slicer.org/u/zhang_ming)\
**Replies:** 0\
**Last updated:** [August 6, 2022, 2:11am UTC](https://discourse.slicer.org/t/how-can-i-get-the-widget-called-vtkmrmlsliceintersectionwidget-in-python/24661 "2022-08-06T02:11:28Z")

</div>

sliceViewLabel = "Red" sliceViewWidget = slicer.app.layoutManager().sliceWidget(sliceViewLabel) displayableManager = sliceViewWidget.sliceView().displayableManagerByClassName("\*\*vtkMRMLScalarBarDisplayableManager\*\*") w =…

---

## [Using flood filling](https://discourse.slicer.org/t/using-flood-filling/24436)

<div class="topic-metadata">

**Author:** [@harrykwon0524](https://discourse.slicer.org/u/harrykwon0524)\
**Replies:** 8\
**Last updated:** [August 4, 2022, 7:42pm UTC](https://discourse.slicer.org/t/using-flood-filling/24436 "2022-08-04T19:42:56Z")

</div>

hi i am a newbie using the 3dslicer program and had some questions along the way. I am trying to segment the vessels from the brain and was wondering how to use the floor filling. Is it possible to click the vessels on t…

---

## [Get segment status in code](https://discourse.slicer.org/t/get-segment-status-in-code/24613)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 4\
**Last updated:** [August 4, 2022, 3:50pm UTC](https://discourse.slicer.org/t/get-segment-status-in-code/24613 "2022-08-04T15:50:39Z")

</div>

I have multiple segments in Segment Editor. I set the segment status flag to ‘Flagged’ if I think there is some problem with the output displayed on screen. I would then like to apply the effect based on if the segment …

---

## [Invoking docker from a slicer module](https://discourse.slicer.org/t/invoking-docker-from-a-slicer-module/24529)

<div class="topic-metadata">

**Author:** [@Lee\_Newberg](https://discourse.slicer.org/u/Lee_Newberg)\
**Replies:** 3\
**Last updated:** [August 4, 2022, 2:32pm UTC](https://discourse.slicer.org/t/invoking-docker-from-a-slicer-module/24529 "2022-08-04T14:32:37Z")

</div>

I am modifying LungAIR, a customization of 3D Slicer, and I am going to have the new module call off to a docker image (on the same computer) to perform a calculation. It would be great if there is a 3D Slicer module ou…

---

## [\`CreateClosedSurfaceRepresentation()\` does not work when closing a segmentation surfaces](https://discourse.slicer.org/t/createclosedsurfacerepresentation-does-not-work-when-closing-a-segmentation-surfaces/24617)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 6\
**Last updated:** [August 4, 2022, 6:46am UTC](https://discourse.slicer.org/t/createclosedsurfacerepresentation-does-not-work-when-closing-a-segmentation-surfaces/24617 "2022-08-04T06:46:41Z")

</div>

I want to convert a model to a segmentation and close the surface, but using CreateClosedSurfaceRepresentation() doesn’t work, what’s wrong? seg = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLSegmentationNode") seg.SetRef…

---

## [Load two volumes into two views using Python](https://discourse.slicer.org/t/load-two-volumes-into-two-views-using-python/24628)

<div class="topic-metadata">

**Author:** [@bzhu](https://discourse.slicer.org/u/bzhu)\
**Replies:** 1\
**Last updated:** [August 3, 2022, 11:21pm UTC](https://discourse.slicer.org/t/load-two-volumes-into-two-views-using-python/24628 "2022-08-03T23:21:56Z")

</div>

Operating system: Windows Slicer version:4.11.20210226 r29738 I am developing a Slicer module that performs image enhancement of computed tomography volumes. Once the module is executed, I’d like to allow the user to s…

---

## [qMRMLSubjectHeirarchyTreeView customization](https://discourse.slicer.org/t/qmrmlsubjectheirarchytreeview-customization/24619)

<div class="topic-metadata">

**Author:** [@priya.vada4](https://discourse.slicer.org/u/priya.vada4)\
**Replies:** 1\
**Last updated:** [August 3, 2022, 3:48pm UTC](https://discourse.slicer.org/t/qmrmlsubjectheirarchytreeview-customization/24619 "2022-08-03T15:48:39Z")

</div>

Hi I am interested in using the qMRMLSubjectHeirarchyTree widget as part of my module to list the mrmlmodelnodes in the scene with the inbuilt features of enabling visibility and changing color. Would it be possible to …

---

## [Display segment name in 3d View, Red, Green and Yellow Slice views](https://discourse.slicer.org/t/display-segment-name-in-3d-view-red-green-and-yellow-slice-views/24590)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 4\
**Last updated:** [August 3, 2022, 4:11am UTC](https://discourse.slicer.org/t/display-segment-name-in-3d-view-red-green-and-yellow-slice-views/24590 "2022-08-03T04:11:10Z")

</div>

I have segmentation node with multiple segments. When I click on Show3D, they show up in 3D view and also in Red, Yellow and Green slices. However, when I have many segments, I find it confusing to differentiate them pu…

---

## [How do I get the ID number from subject hierarchy information for a segmentation?](https://discourse.slicer.org/t/how-do-i-get-the-id-number-from-subject-hierarchy-information-for-a-segmentation/16780)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 6\
**Last updated:** [August 2, 2022, 3:15pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-id-number-from-subject-hierarchy-information-for-a-segmentation/16780 "2022-08-02T15:15:26Z")

</div>

I want to get the ID number present in the subject hierarchy information. I want to do that to access the children segments through the ID number. Heres a picture of what I want to get using python. How can I do this?

---

## [loadable module to integrate a haptic device ](https://discourse.slicer.org/t/loadable-module-to-integrate-a-haptic-device/24332)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.slicer.org/u/leo)\
**Replies:** 19\
**Last updated:** [August 1, 2022, 3:23pm UTC](https://discourse.slicer.org/t/loadable-module-to-integrate-a-haptic-device/24332 "2022-08-01T15:23:53Z")

</div>

Hey everyone, I am trying to create a loadable module in order to integrate a haptic device within Slicer. Now I currently managed to have prototypical usage of the devices framework within the module, my next issue is…

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

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