# Development

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

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

**Page:** 44

---

## [Debug Slicer and SlicerRT Together](https://discourse.slicer.org/t/debug-slicer-and-slicerrt-together/26955)

<div class="topic-metadata">

**Author:** [@sani1486](https://discourse.slicer.org/u/sani1486)\
**Replies:** 5\
**Last updated:** [January 4, 2023, 11:17am UTC](https://discourse.slicer.org/t/debug-slicer-and-slicerrt-together/26955 "2023-01-04T11:17:30Z")

</div>

Hello I am Looking for a way to simultaneously debug the slicer itself along with its Slicer RT extension together. I know how to run the slicerRt or Slicer in debug mode separately. But then I would actually like to ch…

---

## [How to get input value from mouse click?](https://discourse.slicer.org/t/how-to-get-input-value-from-mouse-click/5903)

<div class="topic-metadata">

**Author:** [@zenox](https://discourse.slicer.org/u/zenox)\
**Replies:** 16\
**Last updated:** [March 4, 2019, 2:23am UTC](https://discourse.slicer.org/t/how-to-get-input-value-from-mouse-click/5903 "2019-03-04T02:23:43Z")

</div>

Hello, I am looking to add a button in my extension GUI. The button should allow a user to click somewhere on the volume to retrieve the input value where is clicked. Can someone say if it’s possible ? In Python. T…

---

## [vtkSegmentation data to niftii conversion](https://discourse.slicer.org/t/vtksegmentation-data-to-niftii-conversion/27003)

<div class="topic-metadata">

**Author:** [@Rajesh\_Ds](https://discourse.slicer.org/u/Rajesh_Ds)\
**Replies:** 4\
**Last updated:** [January 2, 2023, 10:01am UTC](https://discourse.slicer.org/t/vtksegmentation-data-to-niftii-conversion/27003 "2023-01-02T10:01:09Z")

</div>

I have a vtkSegmentation data instance obtained as a segmentation results, using python code and slicer’s lungCT\_analyzer modules code. I would like to get the same in niftii format (i.e .nii.gz), so that I can visua…

---

## [Build  Slicer  Failed with   VTK9  Wrapper Error](https://discourse.slicer.org/t/build-slicer-failed-with-vtk9-wrapper-error/26953)

<div class="topic-metadata">

**Author:** [@Hanzhang\_DAI](https://discourse.slicer.org/u/Hanzhang_DAI)\
**Replies:** 4\
**Last updated:** [December 28, 2022, 1:46pm UTC](https://discourse.slicer.org/t/build-slicer-failed-with-vtk9-wrapper-error/26953 "2022-12-28T13:46:30Z")

</div>

Build Command : cmake.exe ^ -G "Visual Studio 17 2022" ^ -A x64 ^ -DQt5\_DIR:PATH=C:\\Qt\\5.15.2\\msvc2019\_64\\lib\\cmake\\Qt5 ^ -DBUILD\_TESTING=OFF ^ -DSlicer\_USE\_QtTesting=OFF ^ -DSlicer\_BUILD\_DOCUMENTATI…

---

## [Getting started with python for creating custom modules](https://discourse.slicer.org/t/getting-started-with-python-for-creating-custom-modules/26899)

<div class="topic-metadata">

**Author:** [@Tobias](https://discourse.slicer.org/u/Tobias)\
**Replies:** 1\
**Last updated:** [December 24, 2022, 5:16am UTC](https://discourse.slicer.org/t/getting-started-with-python-for-creating-custom-modules/26899 "2022-12-24T05:16:51Z")

</div>

Hi, We use 3D slicer and markup as a tool in education and also a combination of different datasets and markup during the examination of students. Some students think it is a bit difficult to do this manually, hence I …

---

## [How about this annotation tool to streamline the process ? (Prototype)](https://discourse.slicer.org/t/how-about-this-annotation-tool-to-streamline-the-process-prototype/26885)

<div class="topic-metadata">

**Author:** [@Tibo](https://discourse.slicer.org/u/Tibo)\
**Replies:** 3\
**Last updated:** [December 23, 2022, 10:22am UTC](https://discourse.slicer.org/t/how-about-this-annotation-tool-to-streamline-the-process-prototype/26885 "2022-12-23T10:22:26Z")

</div>

Hello, I’ve recently built a small “extension” for Slicer that automatizes a bit the annotation process (loading patients, exporting segmentations, switching to the next patient, displays information about the patient f…

---

## [How to input IJK coordinate and get the value of the volume as txt](https://discourse.slicer.org/t/how-to-input-ijk-coordinate-and-get-the-value-of-the-volume-as-txt/26894)

<div class="topic-metadata">

**Author:** [@WilliamLambert1205](https://discourse.slicer.org/u/WilliamLambert1205)\
**Replies:** 1\
**Last updated:** [December 23, 2022, 9:47am UTC](https://discourse.slicer.org/t/how-to-input-ijk-coordinate-and-get-the-value-of-the-volume-as-txt/26894 "2022-12-23T09:47:25Z")

</div>

Hi all, I am trying to access to what is displayed in the Data Probe Module. I need to input IJK coordinate as array and get the value of the volume, without using the mouse at all. I looked at the example However,…

---

## [Bug: slicer.util.loadVolume does not accept pathlib Path (only string)](https://discourse.slicer.org/t/bug-slicer-util-loadvolume-does-not-accept-pathlib-path-only-string/26820)

<div class="topic-metadata">

**Author:** [@Alistair\_McCutcheon](https://discourse.slicer.org/u/Alistair_McCutcheon)\
**Replies:** 3\
**Last updated:** [December 21, 2022, 2:45am UTC](https://discourse.slicer.org/t/bug-slicer-util-loadvolume-does-not-accept-pathlib-path-only-string/26820 "2022-12-21T02:45:53Z")

</div>

My slicer is version 5.2.1 This runs successfully: slicer.util.loadVolume(str(pathlib.Path(segmentation\_dir\_path) / "img\_0.nii.gz")) With the following message: Loaded volume from file: /home/redacted/redacted/redact…

---

## [Extension tests fail on CDash, why?](https://discourse.slicer.org/t/extension-tests-fail-on-cdash-why/26571)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 15\
**Last updated:** [December 20, 2022, 9:22pm UTC](https://discourse.slicer.org/t/extension-tests-fail-on-cdash-why/26571 "2022-12-20T21:22:43Z")

</div>

For community interest this issue is duplicated from BoneReconstructionPlanner Github BRP is working correctly and the tests are succeded on my laptop. Do you have some instruction on how to solve these tests failure …

---

## [Cannot get display node of customized markups in c++](https://discourse.slicer.org/t/cannot-get-display-node-of-customized-markups-in-c/26810)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Replies:** 2\
**Last updated:** [December 19, 2022, 5:03am UTC](https://discourse.slicer.org/t/cannot-get-display-node-of-customized-markups-in-c/26810 "2022-12-19T05:03:38Z")

</div>

I customized a node called vtkMRMLDeformableROINode which is derived from vtkMRMLMarkupsNode. I tried to get its display node and set some properties. The code below written in python works fine without any problem: r…

---

## [Slice views get reset when updated from cli output in a segment editor effect](https://discourse.slicer.org/t/slice-views-get-reset-when-updated-from-cli-output-in-a-segment-editor-effect/26782)

<div class="topic-metadata">

**Author:** [@Alex\_Gilman](https://discourse.slicer.org/u/Alex_Gilman)\
**Replies:** 2\
**Last updated:** [December 17, 2022, 3:32pm UTC](https://discourse.slicer.org/t/slice-views-get-reset-when-updated-from-cli-output-in-a-segment-editor-effect/26782 "2022-12-17T15:32:21Z")

</div>

Operating system: linux (ubuntu 20.04) Slicer version: 5.2.1 Expected behavior: slice views are not reset, only segments change Actual behavior: slice views are re-centered My scripted segment editor effect sends seg…

---

## [How to display a plot generated by \`slicer.util.plot()\` in jupyterNotebook?](https://discourse.slicer.org/t/how-to-display-a-plot-generated-by-slicer-util-plot-in-jupyternotebook/26766)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 1\
**Last updated:** [December 16, 2022, 2:02pm UTC](https://discourse.slicer.org/t/how-to-display-a-plot-generated-by-slicer-util-plot-in-jupyternotebook/26766 "2022-12-16T14:02:05Z")

</div>

How to display a plot generated by slicer.util.plot() in jupyterNotebook? \`

---

## [Customizing Python after extension wizard](https://discourse.slicer.org/t/customizing-python-after-extension-wizard/26751)

<div class="topic-metadata">

**Author:** [@Lee\_Newberg](https://discourse.slicer.org/u/Lee_Newberg)\
**Replies:** 3\
**Last updated:** [December 15, 2022, 8:32pm UTC](https://discourse.slicer.org/t/customizing-python-after-extension-wizard/26751 "2022-12-15T20:32:25Z")

</div>

I used the Slicer Extension Wizard to create two modules for my custom Slicer application. Instead of the inputSelector (qMRMLNodeComboBox), outputSelector (qMRMLNodeComboBox), imageThresholdSliderWidget (ctkSliderWidge…

---

## [How to add my own module widget to another module?](https://discourse.slicer.org/t/how-to-add-my-own-module-widget-to-another-module/26628)

<div class="topic-metadata">

**Author:** [@drobny](https://discourse.slicer.org/u/drobny)\
**Replies:** 10\
**Last updated:** [December 15, 2022, 4:54pm UTC](https://discourse.slicer.org/t/how-to-add-my-own-module-widget-to-another-module/26628 "2022-12-15T16:54:27Z")

</div>

Hi all, I have been using Slicer for some basic tasks in the past and just now have started developing my own module. My concept was to simplify the workflow for a clinician to annotate several images. The module should…

---

## [Update slice view positions and orientations using MarkupsFiducialNode interactions](https://discourse.slicer.org/t/update-slice-view-positions-and-orientations-using-markupsfiducialnode-interactions/26651)

<div class="topic-metadata">

**Author:** [@LaurennLam](https://discourse.slicer.org/u/LaurennLam)\
**Replies:** 5\
**Last updated:** [December 13, 2022, 12:53pm UTC](https://discourse.slicer.org/t/update-slice-view-positions-and-orientations-using-markupsfiducialnode-interactions/26651 "2022-12-13T12:53:31Z")

</div>

Hi every one, I add an interactive vtkMRMLMarkupsFiducialNode with a single point which allows me to update my 2D views orientations and positions. But here’s the thing, if I call SetNthControlPointPosition, then when …

---

## [Help on customizing synchronization behavior for linked views of different volumes](https://discourse.slicer.org/t/help-on-customizing-synchronization-behavior-for-linked-views-of-different-volumes/26712)

<div class="topic-metadata">

**Author:** [@Long\_Zhang](https://discourse.slicer.org/u/Long_Zhang)\
**Replies:** 3\
**Last updated:** [December 15, 2022, 2:35pm UTC](https://discourse.slicer.org/t/help-on-customizing-synchronization-behavior-for-linked-views-of-different-volumes/26712 "2022-12-15T14:35:05Z")

</div>

Hi, When comparing two volumes of the same patient but different studies, it would be good to overlay the same portion together. Thus, I wondering how to customize the default behavior of scrolling, moving, scalling op…

---

## [Logical operators - does "Bypass masking" work?](https://discourse.slicer.org/t/logical-operators-does-bypass-masking-work/26706)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 1:28pm UTC](https://discourse.slicer.org/t/logical-operators-does-bypass-masking-work/26706 "2022-12-14T13:28:04Z")

</div>

In the Logical operators tool in Segment editor, the “Bypass masking” checkbox appears to have no effect, at least when it comes to Editable intensity range. When I have this checkbox enabled and I copy from one segment …

---

## [Loading 4D dicom sequences from python script](https://discourse.slicer.org/t/loading-4d-dicom-sequences-from-python-script/26359)

<div class="topic-metadata">

**Author:** [@laurabc](https://discourse.slicer.org/u/laurabc)\
**Replies:** 7\
**Last updated:** [December 13, 2022, 1:05pm UTC](https://discourse.slicer.org/t/loading-4d-dicom-sequences-from-python-script/26359 "2022-12-13T13:05:12Z")

</div>

Dear Community, I am struggling to load my 4D data, in dicom format, using a python script. What I need is something similar to the example in the script repository “Browse a sequence and access currently displayed node…

---

## [Error when pip installing in Slicer's python console](https://discourse.slicer.org/t/error-when-pip-installing-in-slicers-python-console/26669)

<div class="topic-metadata">

**Author:** [@drouin-simon](https://discourse.slicer.org/u/drouin-simon)\
**Replies:** 2\
**Last updated:** [December 12, 2022, 9:46pm UTC](https://discourse.slicer.org/t/error-when-pip-installing-in-slicers-python-console/26669 "2022-12-12T21:46:01Z")

</div>

Hi everyone, I’m trying to pip install packages from the Python console in Slicer using the following commands: import pip pip.main(\['install','pandas'\]) This works perfectly well on macOS, but on Windows I get the fo…

---

## [Making BoneReconstructionPlanner tests more human like](https://discourse.slicer.org/t/making-bonereconstructionplanner-tests-more-human-like/26688)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 4\
**Last updated:** [December 12, 2022, 6:02pm UTC](https://discourse.slicer.org/t/making-bonereconstructionplanner-tests-more-human-like/26688 "2022-12-12T18:02:47Z")

</div>

I guess I need an event filter on the mainWindow to ignore all mouse-clicks and key-strokes while the steps of the test are running in a visually appealing fashion by using: slicer.app.processEvents() #and maybe qt.QTim…

---

## [Prevent some C++ code from being wrapped for Python](https://discourse.slicer.org/t/prevent-some-c-code-from-being-wrapped-for-python/26675)

<div class="topic-metadata">

**Author:** [@adeguet1](https://discourse.slicer.org/u/adeguet1)\
**Replies:** 1\
**Last updated:** [December 10, 2022, 4:55pm UTC](https://discourse.slicer.org/t/prevent-some-c-code-from-being-wrapped-for-python/26675 "2022-12-10T16:55:33Z")

</div>

Hello, I have some code I’d like to NOT wrap in Python. In my extension’s MRML directory, I created some “internal” classes that should ideally not be exposed to the user. I’ve been looking at 3 options: A preprocesso…

---

## [Build error due to Python.h file cannot be opened ](https://discourse.slicer.org/t/build-error-due-to-python-h-file-cannot-be-opened/26663)

<div class="topic-metadata">

**Author:** [@2939004821](https://discourse.slicer.org/u/2939004821)\
**Replies:** 1\
**Last updated:** [December 10, 2022, 4:39am UTC](https://discourse.slicer.org/t/build-error-due-to-python-h-file-cannot-be-opened/26663 "2022-12-10T04:39:18Z")

</div>

I get an error when compiling Slicer. The error is that the \<Python.h\> file cannot be opened and the compilation fails. How to solve this problem. 在我对Slicer进行编译时报错。错误是无法打开\<Python.h\>文件导致编译失败，应该如何解决这个问题。

---

## [Create TIFF stack from an stl file](https://discourse.slicer.org/t/create-tiff-stack-from-an-stl-file/26650)

<div class="topic-metadata">

**Author:** [@gcoopermax](https://discourse.slicer.org/u/gcoopermax)\
**Replies:** 2\
**Last updated:** [December 8, 2022, 5:00pm UTC](https://discourse.slicer.org/t/create-tiff-stack-from-an-stl-file/26650 "2022-12-08T17:00:53Z")

</div>

Hello I want to create a stack of TIFF images from an stl file and have tried the code provided in the post below however I can’t get this to work as I keep getting error “\[VTK\] No input data”. Can you please help with …

---

## [Python-scipy build error](https://discourse.slicer.org/t/python-scipy-build-error/26616)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 5\
**Last updated:** [December 8, 2022, 3:20am UTC](https://discourse.slicer.org/t/python-scipy-build-error/26616 "2022-12-08T03:20:52Z")

</div>

python-scipy-install-err.log WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (\_ssl.c:112…

---

## [How to measure tip position error and angle error between two needles in CT image?](https://discourse.slicer.org/t/how-to-measure-tip-position-error-and-angle-error-between-two-needles-in-ct-image/26626)

<div class="topic-metadata">

**Author:** [@Yitian\_Xian](https://discourse.slicer.org/u/Yitian_Xian)\
**Replies:** 1\
**Last updated:** [December 8, 2022, 2:57am UTC](https://discourse.slicer.org/t/how-to-measure-tip-position-error-and-angle-error-between-two-needles-in-ct-image/26626 "2022-12-08T02:57:23Z")

</div>

Hello everyone, I am very new to 3D Slicer, and I found this software very amazing! Thank you to the development team! Currently I am doing a project to compute the tip position error and angle error between two needles…

---

## [Show transform being updated during registration](https://discourse.slicer.org/t/show-transform-being-updated-during-registration/26507)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 10\
**Last updated:** [December 8, 2022, 1:56am UTC](https://discourse.slicer.org/t/show-transform-being-updated-during-registration/26507 "2022-12-08T01:56:58Z")

</div>

hi community can i set a callback function to brainsfit or elastix when brainsfit or elastix running on each iteration?

---

## [Shortcuts and keys already assigned somewhere else?](https://discourse.slicer.org/t/shortcuts-and-keys-already-assigned-somewhere-else/26632)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 4\
**Last updated:** [December 8, 2022, 12:54am UTC](https://discourse.slicer.org/t/shortcuts-and-keys-already-assigned-somewhere-else/26632 "2022-12-08T00:54:51Z")

</div>

Having odd issues with keyboard shortcuts (again). I have code set up like in the script repository: shortcuts = \[ ('p', lambda: hh\_select\_paint()), ('\[', lambda: hh\_select\_erase()), ('\]', lambda: hh\_select\_scisso…

---

## [Draco compression](https://discourse.slicer.org/t/draco-compression/26602)

<div class="topic-metadata">

**Author:** [@lhf](https://discourse.slicer.org/u/lhf)\
**Replies:** 2\
**Last updated:** [December 7, 2022, 2:13am UTC](https://discourse.slicer.org/t/draco-compression/26602 "2022-12-07T02:13:07Z")

</div>

Whether Draco compression model functionality is available in 3Dslicer？

---

## [How to use logging in an extension?](https://discourse.slicer.org/t/how-to-use-logging-in-an-extension/26608)

<div class="topic-metadata">

**Author:** [@Guillaumeee](https://discourse.slicer.org/u/Guillaumeee)\
**Replies:** 1\
**Last updated:** [December 6, 2022, 4:42pm UTC](https://discourse.slicer.org/t/how-to-use-logging-in-an-extension/26608 "2022-12-06T16:42:21Z")

</div>

Hello, I need to manipulate log files via my 3d slicer extension. I tried with the logging library (without success). Example: import logging logging.basicConfig( filename=r'D:\\FEALINX\\Extension\_Pack\\compare\_segm…

---

## [Running scripted-cli prevents QProcess from finishing](https://discourse.slicer.org/t/running-scripted-cli-prevents-qprocess-from-finishing/26534)

<div class="topic-metadata">

**Author:** [@brandus1](https://discourse.slicer.org/u/brandus1)\
**Replies:** 1\
**Last updated:** [December 3, 2022, 3:45pm UTC](https://discourse.slicer.org/t/running-scripted-cli-prevents-qprocess-from-finishing/26534 "2022-12-03T15:45:57Z")

</div>

I have a module where I periodically run an instance of a subclass of QProcess, which is basically identical to @pieper 's Process class in SlicerParallelProcessing. I use this class to run a python script that polls an…

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

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