# Development

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

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

**Page:** 28

---

## [How to customize the Segment Editor effects - Paint/Erase options in Python?](https://discourse.slicer.org/t/how-to-customize-the-segment-editor-effects-paint-erase-options-in-python/33011)

<div class="topic-metadata">

**Author:** [@rajmadhan](https://discourse.slicer.org/u/rajmadhan)\
**Replies:** 0\
**Last updated:** [November 24, 2023, 7:14pm UTC](https://discourse.slicer.org/t/how-to-customize-the-segment-editor-effects-paint-erase-options-in-python/33011 "2023-11-24T19:14:54Z")

</div>

Operating system: Windows 10 Slicer version: 5.4.0 Expected behavior: I would like to customize the Segment Editor options for the Paint/Erase effects in Python. Desired functionality: Set a fixed brush diameter, s…

---

## [How to modify CTKAppLauncherLib?](https://discourse.slicer.org/t/how-to-modify-ctkapplauncherlib/32972)

<div class="topic-metadata">

**Author:** [@qiqi5210](https://discourse.slicer.org/u/qiqi5210)\
**Replies:** 2\
**Last updated:** [November 23, 2023, 8:59pm UTC](https://discourse.slicer.org/t/how-to-modify-ctkapplauncherlib/32972 "2023-11-23T20:59:38Z")

</div>

In Windows, when compiling Slicer, is Slicer directly downloaded and used with the pre-compiled CTKAppLauncher? Specifically, the CTKAppLauncher-0.1.31-win-amd64.tar file. If I want to modify CTKAppLauncherLib, do I need…

---

## [PyTorch3D in 3D Slicer](https://discourse.slicer.org/t/pytorch3d-in-3d-slicer/25143)

<div class="topic-metadata">

**Author:** [@Connor-Bowley](https://discourse.slicer.org/u/Connor-Bowley)\
**Replies:** 18\
**Last updated:** [November 23, 2023, 12:48pm UTC](https://discourse.slicer.org/t/pytorch3d-in-3d-slicer/25143 "2023-11-23T12:48:20Z")

</div>

As part of SlicerSALT, the SlicerDentalModelSeg extension used PyTorch3D to run segment and number teeth from a vtkMRMLModelNode of an intraoral scan. There was some difficulty in getting PyTorch3D to install in Slicer, …

---

## [Scripted/cli Python module](https://discourse.slicer.org/t/scripted-cli-python-module/32950)

<div class="topic-metadata">

**Author:** [@PaoloZaffino](https://discourse.slicer.org/u/PaoloZaffino)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 8:38pm UTC](https://discourse.slicer.org/t/scripted-cli-python-module/32950 "2023-11-22T20:38:55Z")

</div>

Hi all, I was wondering if it is possible to write a scripted Python module that can be used both via GUI and command line. Thanks a lot. Paolo

---

## [VSCode runs SlicerCAT everytime new jupyter notebook is created](https://discourse.slicer.org/t/vscode-runs-slicercat-everytime-new-jupyter-notebook-is-created/32962)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 0\
**Last updated:** [November 22, 2023, 4:35pm UTC](https://discourse.slicer.org/t/vscode-runs-slicercat-everytime-new-jupyter-notebook-is-created/32962 "2023-11-22T16:35:43Z")

</div>

Hi, I’ve build Slicer Jupyter extension and can successively use it within SlicerCAT application. But now everytime I create jupyter notebook in VSCode it tries to detect exsiting Jupyter Kernels and suddenly runs my S…

---

## [Build Python extenstion](https://discourse.slicer.org/t/build-python-extenstion/32904)

<div class="topic-metadata">

**Author:** [@d0rnkernsky](https://discourse.slicer.org/u/d0rnkernsky)\
**Replies:** 3\
**Last updated:** [November 21, 2023, 4:22am UTC](https://discourse.slicer.org/t/build-python-extenstion/32904 "2023-11-21T04:22:07Z")

</div>

Hello everyone! I am working on a python extension, which I would like to make easily shareable only with people from my lab. Ideally, I would like to use Extension Manager’s “Install from file…” functionality. I don’t…

---

## [The B-Spline Explicit Active Surfaces](https://discourse.slicer.org/t/the-b-spline-explicit-active-surfaces/32918)

<div class="topic-metadata">

**Author:** [@whu](https://discourse.slicer.org/u/whu)\
**Replies:** 0\
**Last updated:** [November 21, 2023, 3:00am UTC](https://discourse.slicer.org/t/the-b-spline-explicit-active-surfaces/32918 "2023-11-21T03:00:44Z")

</div>

Is there anyone who focusing on the segmentation using the B-Spline Explicit Active Surfaces ? the paper is : https://arxiv.org/abs/2309.02335 or some other implementation using BSEA ? thanks.

---

## [SyntaxError Using subprocess in MorphoSourceImportV2 Module](https://discourse.slicer.org/t/syntaxerror-using-subprocess-in-morphosourceimportv2-module/32866)

<div class="topic-metadata">

**Author:** [@othomas2](https://discourse.slicer.org/u/othomas2)\
**Replies:** 6\
**Last updated:** [November 17, 2023, 2:06pm UTC](https://discourse.slicer.org/t/syntaxerror-using-subprocess-in-morphosourceimportv2-module/32866 "2023-11-17T14:06:44Z")

</div>

Hello Slicer Community, I’m developing a module, MorphoSourceImportV2, for 3D Slicer to download media from MorphoSource in the background. However, I’ve encountered a SyntaxError when trying to use the subprocess modul…

---

## [How does slicer repair damaged surfaces when converting binary labelmap into closed surfaces?](https://discourse.slicer.org/t/how-does-slicer-repair-damaged-surfaces-when-converting-binary-labelmap-into-closed-surfaces/32862)

<div class="topic-metadata">

**Author:** [@aebopi1999](https://discourse.slicer.org/u/aebopi1999)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 12:27pm UTC](https://discourse.slicer.org/t/how-does-slicer-repair-damaged-surfaces-when-converting-binary-labelmap-into-closed-surfaces/32862 "2023-11-17T12:27:12Z")

</div>

I noticed that in Slicer, when converting a binary labelmap to a closed surface, it automatically repairs damaged surfaces, as shown in the right image. However, when I tried to use some VTK methods to convert a label…

---

## [How to setup subject hierarchy tree filtering?](https://discourse.slicer.org/t/how-to-setup-subject-hierarchy-tree-filtering/32435)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 8\
**Last updated:** [November 15, 2023, 6:14pm UTC](https://discourse.slicer.org/t/how-to-setup-subject-hierarchy-tree-filtering/32435 "2023-11-15T18:14:25Z")

</div>

I’m currently having difficulty filtering the subject hierarchy using the attribute filter API. The following illustrates the unexpected behavior upon using setAttributeFilter. Does anyone know why this may be happening? …

---

## [Difference between opencv images and 3D slicer ](https://discourse.slicer.org/t/difference-between-opencv-images-and-3d-slicer/32671)

<div class="topic-metadata">

**Author:** [@Saman\_Fouladi](https://discourse.slicer.org/u/Saman_Fouladi)\
**Replies:** 5\
**Last updated:** [November 15, 2023, 12:49pm UTC](https://discourse.slicer.org/t/difference-between-opencv-images-and-3d-slicer/32671 "2023-11-15T12:49:49Z")

</div>

Hello. I trained my 2D unet with images which were loaded using opencv in png format. The predicted results are promising for organ segmentation. To work with 3D nrrd image (to show in 3D Slicer), I convert a 3D image t…

---

## [Print output does not immediately appear in Python console](https://discourse.slicer.org/t/print-output-does-not-immediately-appear-in-python-console/32825)

<div class="topic-metadata">

**Author:** [@MLDawn](https://discourse.slicer.org/u/MLDawn)\
**Replies:** 2\
**Last updated:** [November 15, 2023, 10:47am UTC](https://discourse.slicer.org/t/print-output-does-not-immediately-appear-in-python-console/32825 "2023-11-15T10:47:31Z")

</div>

May I ask a basic question. In my python script I keep printing messages using Python’s print() commant. However, these messasges will not appear instantly! For example, if the user pushes a button in my Python plugin, a…

---

## [Fit sphere to points](https://discourse.slicer.org/t/fit-sphere-to-points/32820)

<div class="topic-metadata">

**Author:** [@ben.rodwell](https://discourse.slicer.org/u/ben.rodwell)\
**Replies:** 2\
**Last updated:** [November 15, 2023, 2:14am UTC](https://discourse.slicer.org/t/fit-sphere-to-points/32820 "2023-11-15T02:14:26Z")

</div>

I am trying to fir a sphere between 4 control points using the script below. I have set my four points using the markups module and when I run the script in the python interactor it generates a new model in the models mo…

---

## [Python debug against Slicer \`HEAD\`](https://discourse.slicer.org/t/python-debug-against-slicer-head/32670)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 2\
**Last updated:** [November 14, 2023, 9:35pm UTC](https://discourse.slicer.org/t/python-debug-against-slicer-head/32670 "2023-11-14T21:35:04Z")

</div>

Hi, I have visited the 3D Slicer documentation Python debugging documentation: Python debugging — 3D Slicer documentation And have visited the SlicerDebuggingTools README: GitHub - SlicerRt/SlicerDebuggingTools: Exte…

---

## [Info level logging messages do not appear in Python console](https://discourse.slicer.org/t/info-level-logging-messages-do-not-appear-in-python-console/26418)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 2:45pm UTC](https://discourse.slicer.org/t/info-level-logging-messages-do-not-appear-in-python-console/26418 "2022-11-24T14:45:34Z")

</div>

I built the latest Slicer 5.3, and I now see the changes in the Python console. It’s great to see Qt and VTK errors there too. However, one thing that could make my day to day work very hard is that the output from logg…

---

## [Get or Generate the polydata of a nrrd volume data](https://discourse.slicer.org/t/get-or-generate-the-polydata-of-a-nrrd-volume-data/32815)

<div class="topic-metadata">

**Author:** [@drd](https://discourse.slicer.org/u/drd)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 7:39pm UTC](https://discourse.slicer.org/t/get-or-generate-the-polydata-of-a-nrrd-volume-data/32815 "2023-11-14T19:39:38Z")

</div>

Hello Team, Kindly wanted to know if we can get the polydata of a nrrd volume data in slicer? Thanks

---

## [3D Slicer for Plastic Surgery Simulation](https://discourse.slicer.org/t/3d-slicer-for-plastic-surgery-simulation/32793)

<div class="topic-metadata">

**Author:** [@tjain](https://discourse.slicer.org/u/tjain)\
**Replies:** 3\
**Last updated:** [November 13, 2023, 11:36pm UTC](https://discourse.slicer.org/t/3d-slicer-for-plastic-surgery-simulation/32793 "2023-11-13T23:36:53Z")

</div>

I’m with FaceTouchUp which is an online Plastic Surgery Simulator. We’ve been doing 2D simulations for plastic surgery online. We’re now looking at 3D simulations and discovered 3D Slicer. I’m here to get your thoughts. …

---

## [How can I subscribe to monitor individual extensions on Slicer dashboard?](https://discourse.slicer.org/t/how-can-i-subscribe-to-monitor-individual-extensions-on-slicer-dashboard/2261)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 18\
**Last updated:** [November 13, 2023, 7:59pm UTC](https://discourse.slicer.org/t/how-can-i-subscribe-to-monitor-individual-extensions-on-slicer-dashboard/2261 "2023-11-13T19:59:07Z")

</div>

@jcfr mentioned The good news is that CDash support email notification and now support specifying more than one repository. Can someone help me figure out how to do this? My guess was that this should be configured i…

---

## [Save Segmentation Node as VTK file using the Python Console](https://discourse.slicer.org/t/save-segmentation-node-as-vtk-file-using-the-python-console/32755)

<div class="topic-metadata">

**Author:** [@jhernandezr](https://discourse.slicer.org/u/jhernandezr)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 2:36am UTC](https://discourse.slicer.org/t/save-segmentation-node-as-vtk-file-using-the-python-console/32755 "2023-11-13T02:36:09Z")

</div>

Hi there! Me and my team are trying to develop a code where we export automatically as vtk segmentatino nodes, however we are not able to do so. To be specific, we have a label node with the same structure as the segme…

---

## [OBB Not Aligned with Segmentde](https://discourse.slicer.org/t/obb-not-aligned-with-segmentde/32746)

<div class="topic-metadata">

**Author:** [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Replies:** 4\
**Last updated:** [November 11, 2023, 11:38pm UTC](https://discourse.slicer.org/t/obb-not-aligned-with-segmentde/32746 "2023-11-11T23:38:20Z")

</div>

Hi Everyone, I’m calculating a bounding box for a segment, and the output’s measurement appear to be correct, i.e. I’m using a 20mm paint brush and the height and width are 20mm. When I use the code found here (Script r…

---

## [Vtk.util cannot be found in ParrallelProcessing](https://discourse.slicer.org/t/vtk-util-cannot-be-found-in-parrallelprocessing/32730)

<div class="topic-metadata">

**Author:** [@wrc](https://discourse.slicer.org/u/wrc)\
**Replies:** 1\
**Last updated:** [November 11, 2023, 9:39pm UTC](https://discourse.slicer.org/t/vtk-util-cannot-be-found-in-parrallelprocessing/32730 "2023-11-11T21:39:27Z")

</div>

Hi, I want to transfer numpy array to vtkPoints in a script under the extension ParrallelProcessing. I use import vtk fp = vtk.vtkPoints() fp.SetData(vtk.util.numpy\_support.numpy\_to\_vtk(points)) but return AttributeEr…

---

## [Slicer build error - ‘class QLatin1String’ has no member named ‘arg’de](https://discourse.slicer.org/t/slicer-build-error-class-qlatin1string-has-no-member-named-arg-de/32747)

<div class="topic-metadata">

**Author:** [@Ankit\_Mishra](https://discourse.slicer.org/u/Ankit_Mishra)\
**Replies:** 1\
**Last updated:** [November 11, 2023, 9:32pm UTC](https://discourse.slicer.org/t/slicer-build-error-class-qlatin1string-has-no-member-named-arg-de/32747 "2023-11-11T21:32:15Z")

</div>

/home/ankit/Slicer/Base/QTGUI/qSlicerExtensionsLocalWidget.cxx: In member function ‘void {anonymous}::qSlicerExtensionsDescriptionLabel::labelText(const QString&)’: /home/ankit/Slicer/Base/QTGUI/qSlicerExtensionsLocalWi…

---

## [New transform widget for Slicer](https://discourse.slicer.org/t/new-transform-widget-for-slicer/20483)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 8\
**Last updated:** [November 9, 2023, 3:06pm UTC](https://discourse.slicer.org/t/new-transform-widget-for-slicer/20483 "2023-11-09T15:06:00Z")

</div>

Hi devs. Like I mentioned on the Slicer meeting. I would be interested in contributing a transform widget similar to the one used in the following video: Virtual surgical planning using a DCIA free flap for mandibular re…

---

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

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

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