# Development

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

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

**Page:** 76

---

## [Auto Refresh UI](https://discourse.slicer.org/t/auto-refresh-ui/17780)

<div class="topic-metadata">

**Author:** [@SachidanandAlle](https://discourse.slicer.org/u/SachidanandAlle)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 3:29am UTC](https://discourse.slicer.org/t/auto-refresh-ui/17780 "2021-05-25T03:29:19Z")

</div>

Train task run in server. Periodically I would like to trigger a status check and update some UI button. Basically I have Train start, status\_check and stop buttons When I click start… we switch and enable stop butt…

---

## [Zoom out camera automatically to fit in the segment, how?](https://discourse.slicer.org/t/zoom-out-camera-automatically-to-fit-in-the-segment-how/17716)

<div class="topic-metadata">

**Author:** [@NoobForSlicer](https://discourse.slicer.org/u/NoobForSlicer)\
**Replies:** 7\
**Last updated:** [May 22, 2021, 5:06am UTC](https://discourse.slicer.org/t/zoom-out-camera-automatically-to-fit-in-the-segment-how/17716 "2021-05-22T05:06:30Z")

</div>

I am interested if there is some way to zoom in/out so that each segment whether big or small, fits right away into the view covering let’s say 70% of the viewport. In other words, not to manually zoom in and out each t…

---

## [How to programmatically add create new segmentation as button?](https://discourse.slicer.org/t/how-to-programmatically-add-create-new-segmentation-as-button/17449)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 6:35pm UTC](https://discourse.slicer.org/t/how-to-programmatically-add-create-new-segmentation-as-button/17449 "2021-05-21T18:35:29Z")

</div>

I know that in segment editor the user has the ability to create a new segmentation and name the new segment using "create new segment as … ". Is there any way I can perform that programmatically? I just want to give th…

---

## [Include a manual Segment Editor effect in a module](https://discourse.slicer.org/t/include-a-manual-segment-editor-effect-in-a-module/17464)

<div class="topic-metadata">

**Author:** [@Guglielmo\_Baccani](https://discourse.slicer.org/u/Guglielmo_Baccani)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 6:33pm UTC](https://discourse.slicer.org/t/include-a-manual-segment-editor-effect-in-a-module/17464 "2021-05-21T18:33:00Z")

</div>

I’m building a semi-automatic segmentation module by combining some effects from the Segment Editor. Simplifying the problem, in my module I would like to use the following effects in sequence: Threshold, Scissors (which…

---

## [How can I make all 6 views Link together](https://discourse.slicer.org/t/how-can-i-make-all-6-views-link-together/14874)

<div class="topic-metadata">

**Author:** [@Tesla2678](https://discourse.slicer.org/u/Tesla2678)\
**Replies:** 12\
**Last updated:** [May 21, 2021, 5:11pm UTC](https://discourse.slicer.org/t/how-can-i-make-all-6-views-link-together/14874 "2021-05-21T17:11:43Z")

</div>

Hello there, I have 2 files in layout. I want to make all 6 views link together, So when I move the mouse while the Shift key is pressed, all the other 5 views will move at the same time. Thanks for your help

---

## [Can I prevent ModelMaker from changing what appears in the Slice views?](https://discourse.slicer.org/t/can-i-prevent-modelmaker-from-changing-what-appears-in-the-slice-views/15546)

<div class="topic-metadata">

**Author:** [@sfrisken](https://discourse.slicer.org/u/sfrisken)\
**Replies:** 5\
**Last updated:** [May 21, 2021, 4:58pm UTC](https://discourse.slicer.org/t/can-i-prevent-modelmaker-from-changing-what-appears-in-the-slice-views/15546 "2021-05-21T16:58:59Z")

</div>

I am using ModelMaker in a custom Python module to generate models from a labelmap. I’ve used the code in EditorLib/MakeModelEffect.py as a template. When the model is generated, the state of the views (i.e., the backgr…

---

## [Adding medical tools in segment editor and perform erase effect!](https://discourse.slicer.org/t/adding-medical-tools-in-segment-editor-and-perform-erase-effect/17474)

<div class="topic-metadata">

**Author:** [@Raj\_Kumar\_Ranabhat](https://discourse.slicer.org/u/Raj_Kumar_Ranabhat)\
**Replies:** 11\
**Last updated:** [May 19, 2021, 5:21pm UTC](https://discourse.slicer.org/t/adding-medical-tools-in-segment-editor-and-perform-erase-effect/17474 "2021-05-19T17:21:10Z")

</div>

Hi Experts, In our project, instead of sphere brush (default), we would like to import our own medical tools (obj) file and make an erase effect on 3D model from that medical tool. What will be the fastest and convenie…

---

## [Packaging external projects](https://discourse.slicer.org/t/packaging-external-projects/17664)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 4\
**Last updated:** [May 19, 2021, 3:27pm UTC](https://discourse.slicer.org/t/packaging-external-projects/17664 "2021-05-19T15:27:50Z")

</div>

Hi, Setup: Ubuntu 20.04, SlicerCAT I have external projects in SuperBuild subfolder that I can successively compile. After compilation I want to copy their content to SlicerCAT archive (package them or install - I gues…

---

## [Scripted Loadable Modules Accessing Eachother's Logic](https://discourse.slicer.org/t/scripted-loadable-modules-accessing-eachothers-logic/17677)

<div class="topic-metadata">

**Author:** [@nathanbmnt](https://discourse.slicer.org/u/nathanbmnt)\
**Replies:** 3\
**Last updated:** [May 19, 2021, 2:55pm UTC](https://discourse.slicer.org/t/scripted-loadable-modules-accessing-eachothers-logic/17677 "2021-05-19T14:55:22Z")

</div>

Hello, I have multiple scripted loadable modules (python) where I need modules to access each other’s logic. In the setup() method of Module 1’s ScriptedLoadableModuleWidget there is the line self.logic = Module1Logic…

---

## [Segment / BinaryLabelMap to numpy array](https://discourse.slicer.org/t/segment-binarylabelmap-to-numpy-array/778)

<div class="topic-metadata">

**Author:** [@Colin\_McCurdy](https://discourse.slicer.org/u/Colin_McCurdy)\
**Replies:** 9\
**Last updated:** [August 9, 2017, 8:57pm UTC](https://discourse.slicer.org/t/segment-binarylabelmap-to-numpy-array/778 "2017-08-09T20:57:46Z")

</div>

Operating system:Windows 10 Slicer version: 4.7.0-2017-07-19 Hello All, I’m trying to get a numpy array out of a segment or binarylabelmap and I can’t find a way to do that currently. I’m sure it’s right in front of m…

---

## [Slicer cmake-configuration fails with VTK 9 on Ubuntu 20.04](https://discourse.slicer.org/t/slicer-cmake-configuration-fails-with-vtk-9-on-ubuntu-20-04/17643)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 8\
**Last updated:** [May 18, 2021, 8:45am UTC](https://discourse.slicer.org/t/slicer-cmake-configuration-fails-with-vtk-9-on-ubuntu-20-04/17643 "2021-05-18T08:45:11Z")

</div>

Hi, Trying to build SlicerCAT with VTK 9 and I get this error: CMake Error at CMakeLists.txt:813 (find\_package): Found package configuration file: /home/kerim/Documents/Colada\_prj/d/VTK-build/vtk-config.cmake …

---

## [Question about license](https://discourse.slicer.org/t/question-about-license/17668)

<div class="topic-metadata">

**Author:** [@GRChoi](https://discourse.slicer.org/u/GRChoi)\
**Replies:** 2\
**Last updated:** [May 18, 2021, 5:03am UTC](https://discourse.slicer.org/t/question-about-license/17668 "2021-05-18T05:03:18Z")

</div>

Hi everyone, I am interested in building Slicer in Windows. I read build instruction and I found something weird. Slicer build requires QT 5, and QT is (L)GPL license. As I know, (L)GPL is infectious which makes refe…

---

## [Generate 2D X-ray image from volume, just like DRR...update?](https://discourse.slicer.org/t/generate-2d-x-ray-image-from-volume-just-like-drr-update/17626)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 1\
**Last updated:** [May 16, 2021, 12:42am UTC](https://discourse.slicer.org/t/generate-2d-x-ray-image-from-volume-just-like-drr-update/17626 "2021-05-16T00:42:23Z")

</div>

生成X线片就像DRR, 有没有更好的办法呢? 我查了相关的讨论,更喜欢volume rendering的渲染方式,怎么通过python实现呢? jumbojing 1m Generating X-rays is like DRR, is there a better way? I checked the related discussions, and I prefer the rendering method of vol…

---

## [Volumes module : GetActiveVolumeNode always returns the first node](https://discourse.slicer.org/t/volumes-module-getactivevolumenode-always-returns-the-first-node/17617)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 5\
**Last updated:** [May 15, 2021, 5:21pm UTC](https://discourse.slicer.org/t/volumes-module-getactivevolumenode-always-returns-the-first-node/17617 "2021-05-15T17:21:56Z")

</div>

While trying to get the selected node in the Volumes module, slicer.modules.volumes.logic().GetActiveVolumeNode() does not seem to behave as expected. If we load 2 scalar volumes, GetActiveVolumeNode().GetID() always …

---

## [\`findChild\` is not an attribute](https://discourse.slicer.org/t/findchild-is-not-an-attribute/17490)

<div class="topic-metadata">

**Author:** [@joachim](https://discourse.slicer.org/u/joachim)\
**Replies:** 5\
**Last updated:** [May 14, 2021, 12:45pm UTC](https://discourse.slicer.org/t/findchild-is-not-an-attribute/17490 "2021-05-14T12:45:30Z")

</div>

I downloaded the latest build (4.13.0-2021-05-04) and now my .slicerrc.py is not working. This is because I’m trying to reach a button of SegmentEditorWidget: show3DButton = getModuleGui( 'SegmentEditor' ).findChild( 'c…

---

## [Edit UI of 3D slicer ](https://discourse.slicer.org/t/edit-ui-of-3d-slicer/17576)

<div class="topic-metadata">

**Author:** [@Nikita\_Chopra](https://discourse.slicer.org/u/Nikita_Chopra)\
**Replies:** 1\
**Last updated:** [May 12, 2021, 9:52pm UTC](https://discourse.slicer.org/t/edit-ui-of-3d-slicer/17576 "2021-05-12T21:52:10Z")

</div>

I have built 3D slicer from the source using Visual Studio 2019, I want to work to edit the UI. Instead of Load DICOM, I intend to edit it to load CT sequence images and later edit the method as well. to I am a beginner…

---

## [Now missing from Slicer IGT? Choosing Locator Source](https://discourse.slicer.org/t/now-missing-from-slicer-igt-choosing-locator-source/17585)

<div class="topic-metadata">

**Author:** [@msimonc](https://discourse.slicer.org/u/msimonc)\
**Replies:** 1\
**Last updated:** [May 12, 2021, 2:37pm UTC](https://discourse.slicer.org/t/now-missing-from-slicer-igt-choosing-locator-source/17585 "2021-05-12T14:37:45Z")

</div>

Page 15 of the IGT tutorial “OpenIGTLinkTutorial\_Slicer3.6.2\_JunichiTokuda\_Dec2010.pdf” shows a “Visualisation / Slice Control” dropdown but it’s not there in the current version. How is this step now done? Thanks …

---

## [How to add default text to combobox(qMRMLNodeComboBox) before opening any customize model.](https://discourse.slicer.org/t/how-to-add-default-text-to-combobox-qmrmlnodecombobox-before-opening-any-customize-model/17569)

<div class="topic-metadata">

**Author:** [@Mahesh\_Timmanagoudar](https://discourse.slicer.org/u/Mahesh_Timmanagoudar)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 12:24pm UTC](https://discourse.slicer.org/t/how-to-add-default-text-to-combobox-qmrmlnodecombobox-before-opening-any-customize-model/17569 "2021-05-12T12:24:41Z")

</div>

we have customised model. The GUI is written in XML code. Depending on XML tag qSlicerCLIModuleWidgetPrivate class function is called and dynamically combo box is created. We wanted to add some default text to combo box …

---

## [Access AnnotationROINode without knowing the ID](https://discourse.slicer.org/t/access-annotationroinode-without-knowing-the-id/16777)

<div class="topic-metadata">

**Author:** [@pll\_llq](https://discourse.slicer.org/u/pll_llq)\
**Replies:** 9\
**Last updated:** [May 11, 2021, 1:42pm UTC](https://discourse.slicer.org/t/access-annotationroinode-without-knowing-the-id/16777 "2021-05-11T13:42:24Z")

</div>

Hi :vulcan\_salute: I’m in python and when I create a volume rendering for a scalar volume node using UpdateDisplayNodeFromVolumeNode from modules.volumerendering.logic, the AnnotationROINode is created automatically. I…

---

## [Slicelet for position tracking](https://discourse.slicer.org/t/slicelet-for-position-tracking/17558)

<div class="topic-metadata">

**Author:** [@szlaci](https://discourse.slicer.org/u/szlaci)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 4:44am UTC](https://discourse.slicer.org/t/slicelet-for-position-tracking/17558 "2021-05-11T04:44:26Z")

</div>

Hi Everyone, I was wondering what could be a limitation of a slicelet ? An application with: custom layouts connected Atracsys tracker own patient db could be achievable with a slicelet, or the better approach would…

---

## [Is there any way to use 3d slicer libraries and make my own GUI](https://discourse.slicer.org/t/is-there-any-way-to-use-3d-slicer-libraries-and-make-my-own-gui/2607)

<div class="topic-metadata">

**Author:** [@rasoul](https://discourse.slicer.org/u/rasoul)\
**Replies:** 20\
**Last updated:** [September 28, 2019, 12:34pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-use-3d-slicer-libraries-and-make-my-own-gui/2607 "2019-09-28T12:34:11Z")

</div>

Operating system:Win 7 Slicer version:4.8 I wanna to develop my own GUI that uses benefits of 3d\_slicer and also ITK image processing classes. What should I do? Is it possible?

---

## [Spin 3D view in certain axis](https://discourse.slicer.org/t/spin-3d-view-in-certain-axis/17536)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 7:55pm UTC](https://discourse.slicer.org/t/spin-3d-view-in-certain-axis/17536 "2021-05-09T19:55:13Z")

</div>

Hi all I would like to make some video which rotate the 3D view with certain axis I know there is a module “Screen Capture” however this module only support Yaw and pitch direction rotation Is there any way to make 3…

---

## [How to improve SlicerWeb extension with python?](https://discourse.slicer.org/t/how-to-improve-slicerweb-extension-with-python/17480)

<div class="topic-metadata">

**Author:** [@Pedro\_Vitor\_Abreu](https://discourse.slicer.org/u/Pedro_Vitor_Abreu)\
**Replies:** 2\
**Last updated:** [May 9, 2021, 4:15pm UTC](https://discourse.slicer.org/t/how-to-improve-slicerweb-extension-with-python/17480 "2021-05-09T16:15:53Z")

</div>

Hello there, I’m new with Slicer and this is my first topic, so I hope I get it to make it clear and straightforward. I’ve been trying to create a comunication between a Django server and Slicer. The Django server then …

---

## [vtkAddon with VTK 8.2.0 build fails with C++17](https://discourse.slicer.org/t/vtkaddon-with-vtk-8-2-0-build-fails-with-c-17/17512)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 7\
**Last updated:** [May 9, 2021, 3:17pm UTC](https://discourse.slicer.org/t/vtkaddon-with-vtk-8-2-0-build-fails-with-c-17/17512 "2021-05-09T15:17:02Z")

</div>

Hi, VTK 8.2.0 in VTK/Common/Core/vtkMath.h needs to have the following include: #include \<algorithm\> // for std::clamp aimed to support C++17 (and higher). With MSVC I used to successfully compile Slicer with C++17 b…

---

## [Troubleshooting Extension Build Process - Manually Building an Extension](https://discourse.slicer.org/t/troubleshooting-extension-build-process-manually-building-an-extension/14836)

<div class="topic-metadata">

**Author:** [@nrex45](https://discourse.slicer.org/u/nrex45)\
**Replies:** 8\
**Last updated:** [December 7, 2020, 1:55am UTC](https://discourse.slicer.org/t/troubleshooting-extension-build-process-manually-building-an-extension/14836 "2020-12-07T01:55:24Z")

</div>

Hello all. There is quite a bit of documentation on building extensions available, but admittedly I’m a novice programmer and am having some trouble understanding a few of the steps and am looking for some guidance. I h…

---

## [Multiple errors about SimpleITK, LibArchive, python when I build Slicer](https://discourse.slicer.org/t/multiple-errors-about-simpleitk-libarchive-python-when-i-build-slicer/17457)

<div class="topic-metadata">

**Author:** [@moonchi](https://discourse.slicer.org/u/moonchi)\
**Replies:** 4\
**Last updated:** [May 8, 2021, 12:36pm UTC](https://discourse.slicer.org/t/multiple-errors-about-simpleitk-libarchive-python-when-i-build-slicer/17457 "2021-05-08T12:36:55Z")

</div>

I used CMAKE 3.19.8 Visual Studio 2019 x64 tool v142 And refer to I first installed and compiled ITK DCMTK SlicerExecutionModel ZLIB And join them in CMAKE-GUI The following is my CMAKE interface I used t…

---

## [Locking the markups list](https://discourse.slicer.org/t/locking-the-markups-list/17451)

<div class="topic-metadata">

**Author:** [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Replies:** 11\
**Last updated:** [May 7, 2021, 10:49pm UTC](https://discourse.slicer.org/t/locking-the-markups-list/17451 "2021-05-07T22:49:52Z")

</div>

I’d like to add the ability to lock a markups list so no further points can be added (see discussion here). Currently, there is a max number of points that limits the total allowed. When this number non-zero, a new marku…

---

## [Slicer 3D MPR-able DICOM Modalities](https://discourse.slicer.org/t/slicer-3d-mpr-able-dicom-modalities/17260)

<div class="topic-metadata">

**Author:** [@spycolyf](https://discourse.slicer.org/u/spycolyf)\
**Replies:** 4\
**Last updated:** [May 7, 2021, 6:09pm UTC](https://discourse.slicer.org/t/slicer-3d-mpr-able-dicom-modalities/17260 "2021-05-07T18:09:21Z")

</div>

What is the minimum number of multi-frame series frames or single-frame series images reasonable for performing Slicer 3D Multi-Planar Reconstruction? Which modalities will Slicer MPR process other than CT, MR, PT, or N…

---

## [slicer.qSlicerWebWidget() disable extension manager install](https://discourse.slicer.org/t/slicer-qslicerwebwidget-disable-extension-manager-install/17398)

<div class="topic-metadata">

**Author:** [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 2:09pm UTC](https://discourse.slicer.org/t/slicer-qslicerwebwidget-disable-extension-manager-install/17398 "2021-05-07T14:09:45Z")

</div>

Hello everyone, if I instantiate a webwidget before launching the extensions manager, I cannot install extensions anymore. Steps to reproduce. Python console: slicer.qSlicerWebWidget() Open the extension manager f…

---

## [Cpack is broken because of wrong dcmtk path on Ubuntu 20](https://discourse.slicer.org/t/cpack-is-broken-because-of-wrong-dcmtk-path-on-ubuntu-20/17327)

<div class="topic-metadata">

**Author:** [@aymeric.chataigner](https://discourse.slicer.org/u/aymeric.chataigner)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 9:43am UTC](https://discourse.slicer.org/t/cpack-is-broken-because-of-wrong-dcmtk-path-on-ubuntu-20/17327 "2021-05-07T09:43:30Z")

</div>

Hi, OS: Linux Ubuntu 20 3d slicer version: 4.11.20210226 I’m working on a 3d slicer custom app which uses slicelets. 3d slicer cpack is used to generate the install archive. Unfortunately cpack process fails because…

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

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