# Development

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

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

**Page:** 34

---

## [Plot Nodes in Slicer](https://discourse.slicer.org/t/plot-nodes-in-slicer/8553)

<div class="topic-metadata">

**Author:** [@wieke.prummel](https://discourse.slicer.org/u/wieke.prummel)\
**Replies:** 11\
**Last updated:** [July 21, 2023, 5:53am UTC](https://discourse.slicer.org/t/plot-nodes-in-slicer/8553 "2023-07-21T05:53:06Z")

</div>

Hi everyone, I am working on a module to generate a 2D Visualization of the Brain Connectome Network. I am trying to understand all the 2D plot options in Slicer with Python. So my question is the following: What are …

---

## [Does slicer exist a markups plugin like this?](https://discourse.slicer.org/t/does-slicer-exist-a-markups-plugin-like-this/30705)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 4\
**Last updated:** [July 21, 2023, 5:49am UTC](https://discourse.slicer.org/t/does-slicer-exist-a-markups-plugin-like-this/30705 "2023-07-21T05:49:51Z")

</div>

the markups plugin extends the curve markups node , you can narrow or enlarge the area like the picture below

---

## [How to build 3D Slicer from the source code? Requirements.](https://discourse.slicer.org/t/how-to-build-3d-slicer-from-the-source-code-requirements/30645)

<div class="topic-metadata">

**Author:** [@SamuelSuhas](https://discourse.slicer.org/u/SamuelSuhas)\
**Replies:** 1\
**Last updated:** [July 17, 2023, 5:07pm UTC](https://discourse.slicer.org/t/how-to-build-3d-slicer-from-the-source-code-requirements/30645 "2023-07-17T17:07:21Z")

</div>

Can someone please give detailed directions on how to build 3D Slicer from the source code. What are the prerequisites and where we could get all the required dependencies. Thank you.

---

## [Opensource 3D Tracker](https://discourse.slicer.org/t/opensource-3d-tracker/30372)

<div class="topic-metadata">

**Author:** [@Agung\_Alfiansyah1](https://discourse.slicer.org/u/Agung_Alfiansyah1)\
**Replies:** 7\
**Last updated:** [July 15, 2023, 3:08am UTC](https://discourse.slicer.org/t/opensource-3d-tracker/30372 "2023-07-15T03:08:14Z")

</div>

Dear all, Sorry I’m new to this forum and a bit unsure of the question I’m going to ask. But well, I still dare to ask it. :slight\_smile: If I have a stereo pair of cameras (quite good), is there any open source librar…

---

## [How to debug python library written in C++](https://discourse.slicer.org/t/how-to-debug-python-library-written-in-c/29364)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 10\
**Last updated:** [July 14, 2023, 6:28pm UTC](https://discourse.slicer.org/t/how-to-debug-python-library-written-in-c/29364 "2023-07-14T18:28:32Z")

</div>

I have a Scripted module which invokes functionality from ITKUltrasound. However, the result of this invocation is an all-zero image. Python unit test in ITKUltrasound itself produces non-zero output. What is the best wa…

---

## [Release \[windows\] build of Slicer fails with error on sphinx-build](https://discourse.slicer.org/t/release-windows-build-of-slicer-fails-with-error-on-sphinx-build/30602)

<div class="topic-metadata">

**Author:** [@drdH](https://discourse.slicer.org/u/drdH)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 1:55pm UTC](https://discourse.slicer.org/t/release-windows-build-of-slicer-fails-with-error-on-sphinx-build/30602 "2023-07-14T13:55:25Z")

</div>

Hello Team, Kindly wanted your help on the below build issue: Regards, Darshan

---

## [Custom app compile error (Slicer\_MAIN\_PROJECT\_VERSION\_FULL undefined)](https://discourse.slicer.org/t/custom-app-compile-error-slicer-main-project-version-full-undefined/30577)

<div class="topic-metadata">

**Author:** [@darabi](https://discourse.slicer.org/u/darabi)\
**Replies:** 6\
**Last updated:** [July 14, 2023, 4:16am UTC](https://discourse.slicer.org/t/custom-app-compile-error-slicer-main-project-version-full-undefined/30577 "2023-07-14T04:16:35Z")

</div>

Hello, I created a custom Slicer application using cookiecutter gh:KitwareMedical/SlicerCustomAppTemplate two days ago (main branch is at commit daaa550). Compilation of all dependencies seems to work, but the compil…

---

## [Release build of Slicer fails with error on sphinx-build](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544)

<div class="topic-metadata">

**Author:** [@drdH](https://discourse.slicer.org/u/drdH)\
**Replies:** 5\
**Last updated:** [July 13, 2023, 3:13pm UTC](https://discourse.slicer.org/t/release-build-of-slicer-fails-with-error-on-sphinx-build/30544 "2023-07-13T15:13:11Z")

</div>

Hello Team, Kindly wanted to know how to fix the error based on below message: CUSTOMBUILD : warning : sphinx-build not found: Python documentation will not be created I am trying to build in release mode. The issu…

---

## [Select locked control points in markup](https://discourse.slicer.org/t/select-locked-control-points-in-markup/30221)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 7\
**Last updated:** [July 13, 2023, 1:41pm UTC](https://discourse.slicer.org/t/select-locked-control-points-in-markup/30221 "2023-07-13T13:41:31Z")

</div>

Yes the problem is solved but there is another problem now. The user will click any of the control point. Before the user selects any control point the model position is moved to get the location to select the control p…

---

## [Markup nodes - option for locked/unlocked on creation?](https://discourse.slicer.org/t/markup-nodes-option-for-locked-unlocked-on-creation/12981)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 15\
**Last updated:** [July 13, 2023, 5:31am UTC](https://discourse.slicer.org/t/markup-nodes-option-for-locked-unlocked-on-creation/12981 "2023-07-13T05:31:34Z")

</div>

It looks like the default lock status for markup nodes is unlocked by default - looking in the vtkMRMLMarkupsNode() constructor, it sets Locked to 0 on the second line of code. I almost never move markups, unless to mov…

---

## [How to read video stream from local video file or webcamera?](https://discourse.slicer.org/t/how-to-read-video-stream-from-local-video-file-or-webcamera/30508)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 2:11am UTC](https://discourse.slicer.org/t/how-to-read-video-stream-from-local-video-file-or-webcamera/30508 "2023-07-13T02:11:15Z")

</div>

my boss want to show live video in slicer 3d window via Video capture card and local video , I searched for information about the community and came to the conclusion that webcamera can be implemented using the Plus plug…

---

## [Segment Editor doesn't work on custom slice](https://discourse.slicer.org/t/segment-editor-doesnt-work-on-custom-slice/30572)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 2:02am UTC](https://discourse.slicer.org/t/segment-editor-doesnt-work-on-custom-slice/30572 "2023-07-13T02:02:36Z")

</div>

I added a custom slice outside the view layout using this script and tried to use segment editor paint on it. But it doesn’t work How can I get the Segment Editor work on slice that outside the view layout?

---

## [How to hide or delete the Help&Acknowledgement bar](https://discourse.slicer.org/t/how-to-hide-or-delete-the-help-acknowledgement-bar/30571)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 4\
**Last updated:** [July 13, 2023, 1:34am UTC](https://discourse.slicer.org/t/how-to-hide-or-delete-the-help-acknowledgement-bar/30571 "2023-07-13T01:34:38Z")

</div>

In slicer,every module has a Help bar, as is shown in this pic. I wonder hide or delete it ,is there any way ?

---

## [Export 3D stl file from Volume Rendering](https://discourse.slicer.org/t/export-3d-stl-file-from-volume-rendering/30526)

<div class="topic-metadata">

**Author:** [@thkarag](https://discourse.slicer.org/u/thkarag)\
**Replies:** 1\
**Last updated:** [July 11, 2023, 7:31pm UTC](https://discourse.slicer.org/t/export-3d-stl-file-from-volume-rendering/30526 "2023-07-11T19:31:20Z")

</div>

Is there a way to export a stl file from volume rendering module ? I use volume rendering to make a 3D image of ultrasound scannings (ultrasound DICOM file load in 3D slicer) and I want to export this volume rendering im…

---

## [Syncing Markups edit state with control point lock](https://discourse.slicer.org/t/syncing-markups-edit-state-with-control-point-lock/21606)

<div class="topic-metadata">

**Author:** [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Replies:** 4\
**Last updated:** [July 11, 2023, 7:40am UTC](https://discourse.slicer.org/t/syncing-markups-edit-state-with-control-point-lock/21606 "2023-07-11T07:40:35Z")

</div>

Currently, when a point is locked, the Control Points table can be used to change the position status. If the state is accidentally changed to edit and the cursor enters the screen, the previous position will be lost. Si…

---

## [Importing custom python module into scripted extension](https://discourse.slicer.org/t/importing-custom-python-module-into-scripted-extension/11673)

<div class="topic-metadata">

**Author:** [@talmazov](https://discourse.slicer.org/u/talmazov)\
**Replies:** 3\
**Last updated:** [July 10, 2023, 1:37am UTC](https://discourse.slicer.org/t/importing-custom-python-module-into-scripted-extension/11673 "2023-07-10T01:37:56Z")

</div>

Hey all, I have a custom python file asyncsocket.py that contains some code independent of 3d slicer. I am trying to import that module to use in a scripted widged by doing import asyncsocket howeveri get this Runtim…

---

## [Strange attribute error](https://discourse.slicer.org/t/strange-attribute-error/30453)

<div class="topic-metadata">

**Author:** [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Replies:** 1\
**Last updated:** [July 8, 2023, 4:02am UTC](https://discourse.slicer.org/t/strange-attribute-error/30453 "2023-07-08T04:02:36Z")

</div>

When testing out the WriteXML() function, I keep getting this error. It seems the node type name is too long, or something like that. Any way to resolve?

---

## [Load additional packages in Extension](https://discourse.slicer.org/t/load-additional-packages-in-extension/30460)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 2:10am UTC](https://discourse.slicer.org/t/load-additional-packages-in-extension/30460 "2023-07-08T02:10:35Z")

</div>

Hi guys, We’re trying to build an extension and want to use Pandas package in the extension. How should we include the packages (like normal python app we have requirements.txt)? Thank you, Ha Phan.

---

## [How to convert vtkPoints to numpy?](https://discourse.slicer.org/t/how-to-convert-vtkpoints-to-numpy/30445)

<div class="topic-metadata">

**Author:** [@wrc](https://discourse.slicer.org/u/wrc)\
**Replies:** 1\
**Last updated:** [July 7, 2023, 8:55am UTC](https://discourse.slicer.org/t/how-to-convert-vtkpoints-to-numpy/30445 "2023-07-07T08:55:19Z")

</div>

Hello, I want to convert vtkPoints to numpy. I used vtk.util.numpy\_support.vtk\_to\_numpy(vtkPoints) But I got File "/Applications/Slicer.app/Contents/bin/Python/vtkmodules/util/numpy\_support.py", line 220, in vtk\_to\_…

---

## [Path of data added to slicer](https://discourse.slicer.org/t/path-of-data-added-to-slicer/30425)

<div class="topic-metadata">

**Author:** [@Kening\_Zhang](https://discourse.slicer.org/u/Kening_Zhang)\
**Replies:** 2\
**Last updated:** [July 6, 2023, 1:27pm UTC](https://discourse.slicer.org/t/path-of-data-added-to-slicer/30425 "2023-07-06T13:27:13Z")

</div>

Dear developer, I only find the command about the path of files of DICOM, how can I find the path of data added to slicer, by the way, I also want to know the command of loaded the generated anatomical tracts into the …

---

## [About release a python extension with a CLI module](https://discourse.slicer.org/t/about-release-a-python-extension-with-a-cli-module/30420)

<div class="topic-metadata">

**Author:** [@bywbilly](https://discourse.slicer.org/u/bywbilly)\
**Replies:** 0\
**Last updated:** [July 5, 2023, 9:49pm UTC](https://discourse.slicer.org/t/about-release-a-python-extension-with-a-cli-module/30420 "2023-07-05T21:49:01Z")

</div>

Hi 3D Slicer Community, We are developing a Python extension and plan to release it into the 3D slicer community. To make the main time-consuming part run in the backend, we create a CLI module following this repo: Git…

---

## [triggering main window exit when exiting from qdialog window](https://discourse.slicer.org/t/triggering-main-window-exit-when-exiting-from-qdialog-window/30373)

<div class="topic-metadata">

**Author:** [@pcg12131415](https://discourse.slicer.org/u/pcg12131415)\
**Replies:** 2\
**Last updated:** [July 5, 2023, 3:29pm UTC](https://discourse.slicer.org/t/triggering-main-window-exit-when-exiting-from-qdialog-window/30373 "2023-07-05T15:29:58Z")

</div>

Hi! I have a Slicer module that opens a different window (using QDialog) from the Slicer main one. I would like to connect the two of them in order to close Slicer when the second one gets closed. I saw I could overrid…

---

## [I want to call api on close event of mainwindow](https://discourse.slicer.org/t/i-want-to-call-api-on-close-event-of-mainwindow/30387)

<div class="topic-metadata">

**Author:** [@ssv](https://discourse.slicer.org/u/ssv)\
**Replies:** 1\
**Last updated:** [July 5, 2023, 10:18am UTC](https://discourse.slicer.org/t/i-want-to-call-api-on-close-event-of-mainwindow/30387 "2023-07-05T10:18:31Z")

</div>

What i want is if multiple instance is opened only the last instance will call the delete machine api , right now what happen is if i closr the app it get the count of running instance in memory that will give me wrong …

---

## [Use MarkupsROI to crop DICOM in coronal / sagittal view](https://discourse.slicer.org/t/use-markupsroi-to-crop-dicom-in-coronal-sagittal-view/30399)

<div class="topic-metadata">

**Author:** [@dhanushkannan](https://discourse.slicer.org/u/dhanushkannan)\
**Replies:** 0\
**Last updated:** [July 5, 2023, 3:28am UTC](https://discourse.slicer.org/t/use-markupsroi-to-crop-dicom-in-coronal-sagittal-view/30399 "2023-07-05T03:28:41Z")

</div>

Hi all, I have used MarkupsROI to crop DICOM images using Python. the following is the code which I have used for cropping based on ROI cropVolumeLogic = slicer.modules.cropvolume.logic() cropVolumeParameterNode = …

---

## [find cli-modules path](https://discourse.slicer.org/t/find-cli-modules-path/29999)

<div class="topic-metadata">

**Author:** [@Kening\_Zhang](https://discourse.slicer.org/u/Kening_Zhang)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 11:41am UTC](https://discourse.slicer.org/t/find-cli-modules-path/29999 "2023-06-13T11:41:30Z")

</div>

FiberTractMeasurementsCLI = “/Applications/Slicer.app/Contents/Extensions-31382/SlicerDMRI/lib/Slicer-5.2/cli-modules/FiberTractMeasurements” This is the path I need to use in the later code, but for other users, the pa…

---

## [How to leverage oriented bounding boxes from SegmentStatistics to crop scans within python numpy](https://discourse.slicer.org/t/how-to-leverage-oriented-bounding-boxes-from-segmentstatistics-to-crop-scans-within-python-numpy/30390)

<div class="topic-metadata">

**Author:** [@tomek1911](https://discourse.slicer.org/u/tomek1911)\
**Replies:** 1\
**Last updated:** [July 4, 2023, 1:04pm UTC](https://discourse.slicer.org/t/how-to-leverage-oriented-bounding-boxes-from-segmentstatistics-to-crop-scans-within-python-numpy/30390 "2023-07-04T13:04:37Z")

</div>

Intro: I need to crop teeth instances in the CBCT scan. I have to do it in Python with numpy because I need to be able to crop data during code runs and experiments - e.g., by changing the crop margin along the z-axis) …

---

## [3D Slicer show nrrd file](https://discourse.slicer.org/t/3d-slicer-show-nrrd-file/30334)

<div class="topic-metadata">

**Author:** [@mazurkin.daniel](https://discourse.slicer.org/u/mazurkin.daniel)\
**Replies:** 2\
**Last updated:** [July 3, 2023, 8:24am UTC](https://discourse.slicer.org/t/3d-slicer-show-nrrd-file/30334 "2023-07-03T08:24:58Z")

</div>

Hello! I’m rewriting the DICOMWebBrowser extension to display a model from VolumeRendering with a selected study when starting 3D Slicer from console. How can I achieve this display? Currently, an MRMLNode is added, but …

---

## [Help Installing vtkITK module](https://discourse.slicer.org/t/help-installing-vtkitk-module/13451)

<div class="topic-metadata">

**Author:** [@rohan\_n](https://discourse.slicer.org/u/rohan_n)\
**Replies:** 9\
**Last updated:** [July 3, 2023, 2:06am UTC](https://discourse.slicer.org/t/help-installing-vtkitk-module/13451 "2023-07-03T02:06:00Z")

</div>

Hello, This isn’t exactly a Slicer question, but I thought someone on these forums may be able to help. I want to use vtkITK.vtkITKIslandMath However, I would prefer to use it on a regular Python installation instead …

---

## [Create markups lines from .csv file](https://discourse.slicer.org/t/create-markups-lines-from-csv-file/28724)

<div class="topic-metadata">

**Author:** [@devD](https://discourse.slicer.org/u/devD)\
**Replies:** 7\
**Last updated:** [July 2, 2023, 11:50am UTC](https://discourse.slicer.org/t/create-markups-lines-from-csv-file/28724 "2023-07-02T11:50:01Z")

</div>

Hi, I have a csv file with the columns ‘label’, ‘start’ and ‘end’. Where ‘start’ and ‘end’ are coordinates for a line. How can I in Python from this csv file create markups lines which corresponds to the ‘start’ and ‘en…

---

## [The Problem of Communication with Unity using openIGTLink](https://discourse.slicer.org/t/the-problem-of-communication-with-unity-using-openigtlink/30345)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 1\
**Last updated:** [July 2, 2023, 11:34am UTC](https://discourse.slicer.org/t/the-problem-of-communication-with-unity-using-openigtlink/30345 "2023-07-02T11:34:31Z")

</div>

i want to using Slicer to communication Unity with OpenIGTLink I have read the code of ARInSlicer and learned how to transform TransformNode and 2DTexture from Slicer to Unity ,is there any way to Transform PolyData fro…

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

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