# Development

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

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

**Page:** 36

---

## [3D Visualization in Slicerde](https://discourse.slicer.org/t/3d-visualization-in-slicerde/30025)

<div class="topic-metadata">

**Author:** [@DzungDinh](https://discourse.slicer.org/u/DzungDinh)\
**Replies:** 1\
**Last updated:** [June 16, 2023, 2:31pm UTC](https://discourse.slicer.org/t/3d-visualization-in-slicerde/30025 "2023-06-16T14:31:19Z")

</div>

Hello! I have a question regarding the best practice for visualizing the MRI scans and their segmentation. When I import the MRI scans and segmentations, it doesn’t align (they are in different locations). Moreover, the…

---

## [How to include other modules in plugins](https://discourse.slicer.org/t/how-to-include-other-modules-in-plugins/30035)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.slicer.org/u/ma1282029525)\
**Replies:** 1\
**Last updated:** [June 16, 2023, 2:29pm UTC](https://discourse.slicer.org/t/how-to-include-other-modules-in-plugins/30035 "2023-06-16T14:29:20Z")

</div>

文档/每晚/开发人员/教程/创建可加载模块 - 切片器维基 (slicer.org) I used this tutorial to build extensions, but I still couldn’t successfully compile them。 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2019 无法解析的外部符号 \_\_declspec(dllimport) public: s…

---

## [SlicerApp-real.exe becomes non responsive when running my module](https://discourse.slicer.org/t/slicerapp-real-exe-becomes-non-responsive-when-running-my-module/30059)

<div class="topic-metadata">

**Author:** [@drdH](https://discourse.slicer.org/u/drdH)\
**Replies:** 1\
**Last updated:** [June 16, 2023, 2:01pm UTC](https://discourse.slicer.org/t/slicerapp-real-exe-becomes-non-responsive-when-running-my-module/30059 "2023-06-16T14:01:35Z")

</div>

Team, I am running custom slicer extension in debug mode. When the debug is started and my extension loaded the following happen: I am able to run the Slicer UI for some time then it stops responding The command prom…

---

## [Let me know how to set MONAI Label server in MONAI Label module](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177)

<div class="topic-metadata">

**Author:** [@platanus](https://discourse.slicer.org/u/platanus)\
**Replies:** 11\
**Last updated:** [June 16, 2023, 1:56pm UTC](https://discourse.slicer.org/t/let-me-know-how-to-set-monai-label-server-in-monai-label-module/24177 "2023-06-16T13:56:56Z")

</div>

Hello. All members of 3D-Slicer I have a question for setting of MONAI Label module in 3D-Slicer. What should I input in ‘MONAI Label server’ option as following image? (I have no local IP address, I’m using wifi.) …

---

## [Screen position from RAS coordinates](https://discourse.slicer.org/t/screen-position-from-ras-coordinates/30055)

<div class="topic-metadata">

**Author:** [@pearsonm](https://discourse.slicer.org/u/pearsonm)\
**Replies:** 1\
**Last updated:** [June 16, 2023, 1:59am UTC](https://discourse.slicer.org/t/screen-position-from-ras-coordinates/30055 "2023-06-16T01:59:39Z")

</div>

slicer.util.clickAndDrag() includes a code snippet that uses an interactor to show the screen position on left mouse click. Is there a way to get the screen position from RAS coordinates in the Red slice? I want to impor…

---

## [Slicer extension 'reload' tap deactivation?](https://discourse.slicer.org/t/slicer-extension-reload-tap-deactivation/29996)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 2\
**Last updated:** [June 13, 2023, 1:49am UTC](https://discourse.slicer.org/t/slicer-extension-reload-tap-deactivation/29996 "2023-06-13T01:49:24Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 There is no problem in using the module I created as an ‘extension’ in my local. If I run the ‘extension module’ that works normally on my computer on another computer…

---

## [Updated Python FAQ & Slicer API documentation](https://discourse.slicer.org/t/updated-python-faq-slicer-api-documentation/29967)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 0\
**Last updated:** [June 10, 2023, 11:07pm UTC](https://discourse.slicer.org/t/updated-python-faq-slicer-api-documentation/29967 "2023-06-10T23:07:54Z")

</div>

The pull request PR-7014 adds the following entries: What is the Slicer Python Environment? What is the PythonSlicer executable? What is the Python Console? How to access Slicers Python API via an external program whil…

---

## [How to add Setup file in 3D slicer's site-package?](https://discourse.slicer.org/t/how-to-add-setup-file-in-3d-slicers-site-package/29929)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 2\
**Last updated:** [June 10, 2023, 9:59am UTC](https://discourse.slicer.org/t/how-to-add-setup-file-in-3d-slicers-site-package/29929 "2023-06-10T09:59:24Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 I created a setup.py to use all functions and classes declared in the whole project via "Import Total" declaration. It works well as intended in my local, but to m…

---

## [qSlicerMarkupsPlaceWidget widget disappearing](https://discourse.slicer.org/t/qslicermarkupsplacewidget-widget-disappearing/29956)

<div class="topic-metadata">

**Author:** [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Replies:** 3\
**Last updated:** [June 10, 2023, 7:50am UTC](https://discourse.slicer.org/t/qslicermarkupsplacewidget-widget-disappearing/29956 "2023-06-10T07:50:35Z")

</div>

I’m currently working on a custom Python scripted module. I’m currently trying to create a button that creates a module GUI that allows users to place control points to create a curve. The code I’m using is from the repo…

---

## [Question : extension wizard with CmakeList.txt](https://discourse.slicer.org/t/question-extension-wizard-with-cmakelist-txt/29939)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 1\
**Last updated:** [June 9, 2023, 11:33am UTC](https://discourse.slicer.org/t/question-extension-wizard-with-cmakelist-txt/29939 "2023-06-09T11:33:39Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 Q1. Why is the cmake file always divided into two when I create a module through the extension wizard? Is there any reason not to do it with one? Q2.Does anyone kno…

---

## [Slicer 3d Line Widget](https://discourse.slicer.org/t/slicer-3d-line-widget/29868)

<div class="topic-metadata">

**Author:** [@mazurkin](https://discourse.slicer.org/u/mazurkin)\
**Replies:** 3\
**Last updated:** [June 7, 2023, 2:17pm UTC](https://discourse.slicer.org/t/slicer-3d-line-widget/29868 "2023-06-07T14:17:36Z")

</div>

Hello, I built the 3D Slicer tool using Webassembly and received the following error. What could be the cause of it? It works fine on Desktop. Cone.js:1 vtkShaderProgram (0x2a9f90): ERROR: 0:130: ‘/’ : wrong operand typ…

---

## [Using Markups module in custom Python module](https://discourse.slicer.org/t/using-markups-module-in-custom-python-module/29862)

<div class="topic-metadata">

**Author:** [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Replies:** 4\
**Last updated:** [June 7, 2023, 5:31am UTC](https://discourse.slicer.org/t/using-markups-module-in-custom-python-module/29862 "2023-06-07T05:31:53Z")

</div>

Hello, I’m working on a custom Python scripted module that’ll deal with contours. Therefore, I want to be able to create markups with the custom module, and save these markups in certain directories after the user has fi…

---

## [SlicerRT access from other module](https://discourse.slicer.org/t/slicerrt-access-from-other-module/29845)

<div class="topic-metadata">

**Author:** [@frankkkss](https://discourse.slicer.org/u/frankkkss)\
**Replies:** 3\
**Last updated:** [June 6, 2023, 2:47pm UTC](https://discourse.slicer.org/t/slicerrt-access-from-other-module/29845 "2023-06-06T14:47:15Z")

</div>

Hello I am trying to create a module in 3D Slicer that needs access to the SlicerRT module to use the DoseVolumeHistogram functions, but I cannot do it. I think I would just need to enter the segmentation and dose volum…

---

## [About creating Customslicer](https://discourse.slicer.org/t/about-creating-customslicer/29821)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 17\
**Last updated:** [June 6, 2023, 3:33am UTC](https://discourse.slicer.org/t/about-creating-customslicer/29821 "2023-06-06T03:33:55Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 Hi slicer users, So far, I’ve been using it by developing a Python module and adding it as a module extension to Slicer. However, if you use it like this, it doesn’t …

---

## [How to remove staircase artifacts in ModelNode like mimics fill hole mode?](https://discourse.slicer.org/t/how-to-remove-staircase-artifacts-in-modelnode-like-mimics-fill-hole-mode/29833)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 5\
**Last updated:** [June 6, 2023, 2:17am UTC](https://discourse.slicer.org/t/how-to-remove-staircase-artifacts-in-modelnode-like-mimics-fill-hole-mode/29833 "2023-06-06T02:17:48Z")

</div>

---

## [Updating segmentationNode with oversampled labelmap](https://discourse.slicer.org/t/updating-segmentationnode-with-oversampled-labelmap/29733)

<div class="topic-metadata">

**Author:** [@danpak94](https://discourse.slicer.org/u/danpak94)\
**Replies:** 10\
**Last updated:** [June 5, 2023, 3:35pm UTC](https://discourse.slicer.org/t/updating-segmentationnode-with-oversampled-labelmap/29733 "2023-06-05T15:35:05Z")

</div>

Hello, I’m trying to do the following: (1) oversample a labelmap (2) modify it in the higher resolution voxel space (3) update the segmentation node with the modified labelmap I figured out (1) and (2), but I couldn…

---

## [Buttons in custom modules](https://discourse.slicer.org/t/buttons-in-custom-modules/29809)

<div class="topic-metadata">

**Author:** [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Replies:** 1\
**Last updated:** [June 3, 2023, 2:22pm UTC](https://discourse.slicer.org/t/buttons-in-custom-modules/29809 "2023-06-03T14:22:16Z")

</div>

Hello, I’m simply trying to create a custom module with some “Add” buttons that add elements to their corresponding lists. I used ExtensionWizard and Qt Designer to make the UI with the buttons. I didn’t use any coding, …

---

## [Remake Save function](https://discourse.slicer.org/t/remake-save-function/29786)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 1\
**Last updated:** [June 2, 2023, 11:29pm UTC](https://discourse.slicer.org/t/remake-save-function/29786 "2023-06-02T23:29:54Z")

</div>

Operating system: 10 Slicer version: 5.2.1 Hi, slicer users, I want to recreate the currently implemented save function with python. Is it correct that the current implementation of the save function is made in C+…

---

## [Toggling visibility of several curves within a specific folder](https://discourse.slicer.org/t/toggling-visibility-of-several-curves-within-a-specific-folder/29785)

<div class="topic-metadata">

**Author:** [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Replies:** 3\
**Last updated:** [June 2, 2023, 7:53pm UTC](https://discourse.slicer.org/t/toggling-visibility-of-several-curves-within-a-specific-folder/29785 "2023-06-02T19:53:26Z")

</div>

I’m working on a custom module that toggles the visibility of the markups within a specific folder. For example, a user can select the option “Nodule 1”, which causes only the markups within the Nodule 1 folder to be vis…

---

## [How do you call a function when a segmentation is modified?](https://discourse.slicer.org/t/how-do-you-call-a-function-when-a-segmentation-is-modified/29774)

<div class="topic-metadata">

**Author:** [@Guillaumeee](https://discourse.slicer.org/u/Guillaumeee)\
**Replies:** 2\
**Last updated:** [June 2, 2023, 8:44am UTC](https://discourse.slicer.org/t/how-do-you-call-a-function-when-a-segmentation-is-modified/29774 "2023-06-02T08:44:58Z")

</div>

Hello, I’m looking to create an observer that will allow me to call a method when the segmentation is modified via the segment editor. Here’s a class I’ve created: import slicer from vtk import vtkCommand class Segme…

---

## [Loading vtkMRMLTextNode with arbitrary file name extension](https://discourse.slicer.org/t/loading-vtkmrmltextnode-with-arbitrary-file-name-extension/29747)

<div class="topic-metadata">

**Author:** [@benzwick](https://discourse.slicer.org/u/benzwick)\
**Replies:** 2\
**Last updated:** [May 31, 2023, 2:37pm UTC](https://discourse.slicer.org/t/loading-vtkmrmltextnode-with-arbitrary-file-name-extension/29747 "2023-05-31T14:37:09Z")

</div>

Is it possible to load a vtkMRMLTextNode with a file extension other than txt, xml or json? For example, I want to load a text file with the extension “.inp” but Slicer only shows the option to load it as a volume.

---

## [Extension manager error after linux build](https://discourse.slicer.org/t/extension-manager-error-after-linux-build/29744)

<div class="topic-metadata">

**Author:** [@Adama\_w](https://discourse.slicer.org/u/Adama_w)\
**Replies:** 1\
**Last updated:** [May 31, 2023, 2:22pm UTC](https://discourse.slicer.org/t/extension-manager-error-after-linux-build/29744 "2023-05-31T14:22:35Z")

</div>

Operating system: Linux Ubuntu 22.04.2 LTS 64-bit Slicer version: 5.0.2 & 5.2.1 Expected behavior: Installed extension Actual behavior: Error message: Failed downloading: https://slicer-packages.kitware.com/api/v1/fil…

---

## [How to hide the purple cube in 3D view using Python scripting?](https://discourse.slicer.org/t/how-to-hide-the-purple-cube-in-3d-view-using-python-scripting/29734)

<div class="topic-metadata">

**Author:** [@seanchoi0519](https://discourse.slicer.org/u/seanchoi0519)\
**Replies:** 3\
**Last updated:** [May 30, 2023, 11:24am UTC](https://discourse.slicer.org/t/how-to-hide-the-purple-cube-in-3d-view-using-python-scripting/29734 "2023-05-30T11:24:39Z")

</div>

Hello Prof Lasso, Is there a way to implement hiding the magenta cube programmatically via python code? Thanks a lot! Sean

---

## [Drawing a QRectangle in the Red, Green, or Yellow Slice View Windows](https://discourse.slicer.org/t/drawing-a-qrectangle-in-the-red-green-or-yellow-slice-view-windows/29686)

<div class="topic-metadata">

**Author:** [@mikeT](https://discourse.slicer.org/u/mikeT)\
**Replies:** 1\
**Last updated:** [May 28, 2023, 12:09pm UTC](https://discourse.slicer.org/t/drawing-a-qrectangle-in-the-red-green-or-yellow-slice-view-windows/29686 "2023-05-28T12:09:21Z")

</div>

In my custom module, the user can adjust the size and position of the image capture of the RGY slice view windows. I would like to implement a button that will show the area to be captured by accessing the QPainter of th…

---

## [How to get segment value through ras coordinate](https://discourse.slicer.org/t/how-to-get-segment-value-through-ras-coordinate/29687)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 2\
**Last updated:** [May 28, 2023, 2:48am UTC](https://discourse.slicer.org/t/how-to-get-segment-value-through-ras-coordinate/29687 "2023-05-28T02:48:09Z")

</div>

hi,Community My train of thought to solve the problem is this: 1.get ras coordinate (ras\_x,ras\_y,ras\_z) through crosshair node 2.get segmentationNode’s rastoijk matrix use code below commonGeometryString = segmentati…

---

## [Can anyone show me how to do slicer extension in c++ with an example?](https://discourse.slicer.org/t/can-anyone-show-me-how-to-do-slicer-extension-in-c-with-an-example/29637)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 2\
**Last updated:** [May 27, 2023, 11:54am UTC](https://discourse.slicer.org/t/can-anyone-show-me-how-to-do-slicer-extension-in-c-with-an-example/29637 "2023-05-27T11:54:05Z")

</div>

Operating system: 10 Slicer version: 5.2.1 Hi, slicer users I am using several python modules in 3d slicer through extension wizard. However, I’ve read all the advice to use script repositories and loadable classes…

---

## [Mouse click over slice](https://discourse.slicer.org/t/mouse-click-over-slice/24967)

<div class="topic-metadata">

**Author:** [@JBeninca](https://discourse.slicer.org/u/JBeninca)\
**Replies:** 4\
**Last updated:** [May 26, 2023, 9:38am UTC](https://discourse.slicer.org/t/mouse-click-over-slice/24967 "2023-05-26T09:38:46Z")

</div>

Hi everyone. Just a question: how can I read the mouse event (right click) over a widget and then run a call back? Is there some function that do it? thanks

---

## [Execute python scripts without opening 3D-slicer GUI](https://discourse.slicer.org/t/execute-python-scripts-without-opening-3d-slicer-gui/29626)

<div class="topic-metadata">

**Author:** [@dhanushkannan](https://discourse.slicer.org/u/dhanushkannan)\
**Replies:** 6\
**Last updated:** [May 26, 2023, 1:30pm UTC](https://discourse.slicer.org/t/execute-python-scripts-without-opening-3d-slicer-gui/29626 "2023-05-26T13:30:57Z")

</div>

Hi all, I have scripted a python code which segments skull from the input DICOM data. When I try to execute the script from CLI using the following command Slicer.exe --python-script "app.py" --no-splash --no-main-wind…

---

## [qMRMLTransformSliders](https://discourse.slicer.org/t/qmrmltransformsliders/29639)

<div class="topic-metadata">

**Author:** [@Mehran](https://discourse.slicer.org/u/Mehran)\
**Replies:** 4\
**Last updated:** [May 26, 2023, 1:25pm UTC](https://discourse.slicer.org/t/qmrmltransformsliders/29639 "2023-05-26T13:25:34Z")

</div>

Hi all, I have struggle with MRMLTransformSliders. since there are 3 sliders inside it, how we can access each slider’s value? Or if it is an attribute to extract transform matrix still is useful. thanks

---

## [How to package a Customized Slicer Application?](https://discourse.slicer.org/t/how-to-package-a-customized-slicer-application/29661)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 12:41pm UTC](https://discourse.slicer.org/t/how-to-package-a-customized-slicer-application/29661 "2023-05-26T12:41:27Z")

</div>

I have developed a customized slicer application using SlicerCustomAppTemplate. I want to package my app into a .deb file on ubuntu18.04, however, I have less knowledge about software packaging. So I am wondering is the…

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

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