# Development

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

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

**Page:** 87

---

## [How to update the progress bar from a scripted CLI](https://discourse.slicer.org/t/how-to-update-the-progress-bar-from-a-scripted-cli/3789)

<div class="topic-metadata">

**Author:** [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Replies:** 2\
**Last updated:** [October 3, 2020, 3:43am UTC](https://discourse.slicer.org/t/how-to-update-the-progress-bar-from-a-scripted-cli/3789 "2020-10-03T03:43:38Z")

</div>

I added an example to the Python scripting documentation, demonstrating how to use the Slicer Execution Model XML-based (\<filter-progress\>...\</filter-progress\>) reporting format from a scripted CLI. Getting the bar to up…

---

## [Getting a temporary directory path in a CLI module](https://discourse.slicer.org/t/getting-a-temporary-directory-path-in-a-cli-module/13817)

<div class="topic-metadata">

**Author:** [@Mik](https://discourse.slicer.org/u/Mik)\
**Replies:** 2\
**Last updated:** [October 3, 2020, 3:20am UTC](https://discourse.slicer.org/t/getting-a-temporary-directory-path-in-a-cli-module/13817 "2020-10-03T03:20:00Z")

</div>

Input and output volumes are stored in temporary directory, and i need to transform an input volume into MetaImage format for further processing in plastimatch. How setup correctly the mha file name (without parsing the …

---

## [CIP develop branch build failure on windows and ubuntu(CIP, slicer)](https://discourse.slicer.org/t/cip-develop-branch-build-failure-on-windows-and-ubuntu-cip-slicer/13810)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 11:52pm UTC](https://discourse.slicer.org/t/cip-develop-branch-build-failure-on-windows-and-ubuntu-cip-slicer/13810 "2020-10-02T23:52:18Z")

</div>

Hello, I have been trying to build CIP on my windows computer with the develop branch. I have tried different versions of cmake including 3.5.2, 3.5, 3.15, and also tried different versions of gcc such as gcc 5.4, 7.4, …

---

## [Create vtkimagedata from closed surface with small holes](https://discourse.slicer.org/t/create-vtkimagedata-from-closed-surface-with-small-holes/13798)

<div class="topic-metadata">

**Author:** [@loubna](https://discourse.slicer.org/u/loubna)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 11:33pm UTC](https://discourse.slicer.org/t/create-vtkimagedata-from-closed-surface-with-small-holes/13798 "2020-10-02T23:33:03Z")

</div>

Hi I have a 3D mesh(closed surface) that contains small holes . Il il possible to convert il to image data using vtkimagestencil ? Thank’s in advance

---

## [Writing Algorithms for a loadable Module](https://discourse.slicer.org/t/writing-algorithms-for-a-loadable-module/13812)

<div class="topic-metadata">

**Author:** [@Anish\_Basnet](https://discourse.slicer.org/u/Anish_Basnet)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 9:03am UTC](https://discourse.slicer.org/t/writing-algorithms-for-a-loadable-module/13812 "2020-10-02T09:03:48Z")

</div>

Hello Everyone, I have read somewhere in the Internet that I can implement any algorithms inside the vtkSlicerMY\_MODULE\_NAMELogic.cxx file. Is it true? If so, how do I access it from the qSlicerMY\_MODULE\_NAMEWidget.cxx …

---

## [How to reslice polydata insert into imagedata?](https://discourse.slicer.org/t/how-to-reslice-polydata-insert-into-imagedata/13800)

<div class="topic-metadata">

**Author:** [@11111](https://discourse.slicer.org/u/11111)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 6:29am UTC](https://discourse.slicer.org/t/how-to-reslice-polydata-insert-into-imagedata/13800 "2020-10-02T06:29:17Z")

</div>

Hey guys, I am now building a medical project and need some tips. This project is for surgeon. A doctor need to implant bone nail and interactive with nails. I have bone image data from CT, and STL file of nails. I ca…

---

## [Change image without changing zoom and positions of sliders](https://discourse.slicer.org/t/change-image-without-changing-zoom-and-positions-of-sliders/13784)

<div class="topic-metadata">

**Author:** [@rohan\_n](https://discourse.slicer.org/u/rohan_n)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 4:38pm UTC](https://discourse.slicer.org/t/change-image-without-changing-zoom-and-positions-of-sliders/13784 "2020-10-01T16:38:42Z")

</div>

I have a scripted module that looks like this. In the example shown, the user has zoomed in on both the red and the yellow slices, and the red & yellow slice slider positions are off center. The user is about to dis…

---

## [Converting Slicer Python code to C++](https://discourse.slicer.org/t/converting-slicer-python-code-to-c/13762)

<div class="topic-metadata">

**Author:** [@nm19](https://discourse.slicer.org/u/nm19)\
**Replies:** 3\
**Last updated:** [October 1, 2020, 12:44pm UTC](https://discourse.slicer.org/t/converting-slicer-python-code-to-c/13762 "2020-10-01T12:44:01Z")

</div>

Hello, I was looking into converting some Slicer code from Python to C++, in particular from the slicer.util module the loadVolume method. Is there an already existing header file that does this for the util module? If …

---

## [Retreive triangle from Flying edges mesh](https://discourse.slicer.org/t/retreive-triangle-from-flying-edges-mesh/13773)

<div class="topic-metadata">

**Author:** [@Nina](https://discourse.slicer.org/u/Nina)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 2:37pm UTC](https://discourse.slicer.org/t/retreive-triangle-from-flying-edges-mesh/13773 "2020-09-30T14:37:21Z")

</div>

Hi; I have closed surface generated from segmentation using Flying edges. I want retreive triangle and points from each cell here is my code: for(int i = 0; i \< FEMesh-\>GetNumberOfCells(); i++) { vtkSmartPointer cel…

---

## [Packaging problem on Linux with Qt 5.15.0](https://discourse.slicer.org/t/packaging-problem-on-linux-with-qt-5-15-0/13245)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 14\
**Last updated:** [September 30, 2020, 2:25pm UTC](https://discourse.slicer.org/t/packaging-problem-on-linux-with-qt-5-15-0/13245 "2020-09-30T14:25:57Z")

</div>

I packaged a Slicer using the latest nightly and Ubuntu 18.04, gcc 7.5.0, and Qt 5.15.0, and when unpacking and executing it, Slicer fails to start due to an error .../Slicer-4.11.0-2020-08-26-linux-amd64/bin/SlicerApp-…

---

## [Scripted module interaction with "Adjust window level" tool](https://discourse.slicer.org/t/scripted-module-interaction-with-adjust-window-level-tool/13758)

<div class="topic-metadata">

**Author:** [@rohan\_n](https://discourse.slicer.org/u/rohan_n)\
**Replies:** 3\
**Last updated:** [September 29, 2020, 10:39pm UTC](https://discourse.slicer.org/t/scripted-module-interaction-with-adjust-window-level-tool/13758 "2020-09-29T22:39:18Z")

</div>

Hello, I would like to know the syntax of the lines of Python code that would allow me to read the window, level values that the user set with the “Adjust Window Level Tool” into variables in my scripted module. Tha…

---

## [Include a data probe in the slicer layoutmanager](https://discourse.slicer.org/t/include-a-data-probe-in-the-slicer-layoutmanager/13734)

<div class="topic-metadata">

**Author:** [@Chintha\_Siva\_Prasad](https://discourse.slicer.org/u/Chintha_Siva_Prasad)\
**Replies:** 5\
**Last updated:** [September 29, 2020, 1:39pm UTC](https://discourse.slicer.org/t/include-a-data-probe-in-the-slicer-layoutmanager/13734 "2020-09-29T13:39:06Z")

</div>

How can I include a data probe in the slicer layout manager? I want to insert a data probe in this layout.

---

## [Installing python modules hangs the UI](https://discourse.slicer.org/t/installing-python-modules-hangs-the-ui/13732)

<div class="topic-metadata">

**Author:** [@strider\_hunter](https://discourse.slicer.org/u/strider_hunter)\
**Replies:** 4\
**Last updated:** [September 28, 2020, 8:37pm UTC](https://discourse.slicer.org/t/installing-python-modules-hangs-the-ui/13732 "2020-09-28T20:37:42Z")

</div>

Context of Issue I am trying to build a python extension that needs to install python libraries upon loading. I have the following requirements Install and load modules via code Show a progress bar and do not hang th…

---

## [ModuleExport.h not found](https://discourse.slicer.org/t/moduleexport-h-not-found/13729)

<div class="topic-metadata">

**Author:** [@Anish\_Basnet](https://discourse.slicer.org/u/Anish_Basnet)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 3:08pm UTC](https://discourse.slicer.org/t/moduleexport-h-not-found/13729 "2020-09-28T15:08:41Z")

</div>

Hello everyone, When compiling the slicer code, I am getting an error. What could be the reason for it? Do I need to change the Cmake.lists file? I am extending a loadable module. Do I need SubjectHierarchyPlugins direc…

---

## [Showing both the background and foreground layer volumes in their entirety](https://discourse.slicer.org/t/showing-both-the-background-and-foreground-layer-volumes-in-their-entirety/13690)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 3\
**Last updated:** [September 26, 2020, 12:56am UTC](https://discourse.slicer.org/t/showing-both-the-background-and-foreground-layer-volumes-in-their-entirety/13690 "2020-09-26T00:56:10Z")

</div>

I often find myself with two 3D ultrasound volumes that I want to overlay in a slice view, but having the background volume determine the extent of the foreground volume that is shown (using regular alpha blending) resul…

---

## [Tensorflow-gpu on Slicer 4.8.1](https://discourse.slicer.org/t/tensorflow-gpu-on-slicer-4-8-1/13694)

<div class="topic-metadata">

**Author:** [@luigi-palladino](https://discourse.slicer.org/u/luigi-palladino)\
**Replies:** 3\
**Last updated:** [September 25, 2020, 2:05pm UTC](https://discourse.slicer.org/t/tensorflow-gpu-on-slicer-4-8-1/13694 "2020-09-25T14:05:56Z")

</div>

Hi, is it possible to install tensorflow-gpu on slicer 4.8.1 on Windows 10? Slicer 4.8.1 has python 2.7 as backend and according to this discussion it shouldn’t be possible: “On windows, it will currently work only f…

---

## [getting the code of Python](https://discourse.slicer.org/t/getting-the-code-of-python/13682)

<div class="topic-metadata">

**Author:** [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Replies:** 4\
**Last updated:** [September 24, 2020, 11:29pm UTC](https://discourse.slicer.org/t/getting-the-code-of-python/13682 "2020-09-24T23:29:59Z")

</div>

hello I want to know if someone knows how to see all commands that I’m executing in 3D slicer. I mean doing an action and seen the code of that accion.

---

## [Segmentation double sphere](https://discourse.slicer.org/t/segmentation-double-sphere/13614)

<div class="topic-metadata">

**Author:** [@pierrebusson](https://discourse.slicer.org/u/pierrebusson)\
**Replies:** 4\
**Last updated:** [September 24, 2020, 8:29am UTC](https://discourse.slicer.org/t/segmentation-double-sphere/13614 "2020-09-24T08:29:09Z")

</div>

Hello, I have created two sphere segmentations from Jupiter notebook and I don’t know how I can select one and do it and then select the other. Here’s a part of my code: Thank you

---

## [Tree view node types and subclassing](https://discourse.slicer.org/t/tree-view-node-types-and-subclassing/13681)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 12:05am UTC](https://discourse.slicer.org/t/tree-view-node-types-and-subclassing/13681 "2020-09-24T00:05:31Z")

</div>

Hello, I am modifying the Data module (copying the widget contents to a new module and calling it another name), and would like to only show some scalar volumes on it’s tree view. For that, I could use instead of this: s…

---

## [Customize the Main Window](https://discourse.slicer.org/t/customize-the-main-window/13610)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Replies:** 8\
**Last updated:** [September 23, 2020, 3:38pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610 "2020-09-23T15:38:08Z")

</div>

Is there a way to delete the effects case since I only need 4 of the buttons that I already made myself: I’ve already been able to delete the 3d slicer logo using: slicer.util.findChild(slicer.util.mainWindow(), ‘LogoLa…

---

## [Change segment color and opacity](https://discourse.slicer.org/t/change-segment-color-and-opacity/7855)

<div class="topic-metadata">

**Author:** [@jazlynn21100](https://discourse.slicer.org/u/jazlynn21100)\
**Replies:** 3\
**Last updated:** [September 23, 2020, 2:04pm UTC](https://discourse.slicer.org/t/change-segment-color-and-opacity/7855 "2020-09-23T14:04:44Z")

</div>

---

## [Segmentation in Jupyter notebook](https://discourse.slicer.org/t/segmentation-in-jupyter-notebook/13583)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Replies:** 5\
**Last updated:** [September 22, 2020, 12:18pm UTC](https://discourse.slicer.org/t/segmentation-in-jupyter-notebook/13583 "2020-09-22T12:18:38Z")

</div>

Hello everyone, I’m trying to make a simply version of 3d slicer using the Jupyter notebook. I would like to enable the « sphere » brush option and be able to choose the % of the brush in my def paint but didn’t find a…

---

## [Python debugging in Visual Studio Code](https://discourse.slicer.org/t/python-debugging-in-visual-studio-code/2928)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 9\
**Last updated:** [September 21, 2020, 6:15pm UTC](https://discourse.slicer.org/t/python-debugging-in-visual-studio-code/2928 "2020-09-21T18:15:06Z")

</div>

Visual Studio Code is an awesome source code editor and IDE - free, multi-platform (Windows, Linux, and Mac), and highly extensible. Support has been added in recent versions of Slicer to connect from Visual Studio Code…

---

## [Fill between slices by code](https://discourse.slicer.org/t/fill-between-slices-by-code/13586)

<div class="topic-metadata">

**Author:** [@luigi-palladino](https://discourse.slicer.org/u/luigi-palladino)\
**Replies:** 2\
**Last updated:** [September 21, 2020, 3:15pm UTC](https://discourse.slicer.org/t/fill-between-slices-by-code/13586 "2020-09-21T15:15:01Z")

</div>

Hi, I would like to perform the effect “Fill between slices” of the Segment Editor in my application on a Segment Node that I have. I can’t figure out how to do that by code. Is there a way to do that? I’m in Slicer …

---

## [Segmentation using Jupyter notebook](https://discourse.slicer.org/t/segmentation-using-jupyter-notebook/13587)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Replies:** 0\
**Last updated:** [September 21, 2020, 2:25pm UTC](https://discourse.slicer.org/t/segmentation-using-jupyter-notebook/13587 "2020-09-21T14:25:51Z")

</div>

Hello everyone, I’m currently coding in a 3d slicer Jupyter notebook in order to make a simplify version of 3d slicer with only the tools I need. I would like to enable the « sphere » brush option and be able to choose…

---

## [User download/use statistics](https://discourse.slicer.org/t/user-download-use-statistics/13582)

<div class="topic-metadata">

**Author:** [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Replies:** 1\
**Last updated:** [September 21, 2020, 9:15am UTC](https://discourse.slicer.org/t/user-download-use-statistics/13582 "2020-09-21T09:15:22Z")

</div>

Is there a way to know how many users have downloaded my module? I just need some statistics displayed in the module presentation or a way to have this to be presented as the module is actually being in use. I currently…

---

## [GPU raycasting with sparse dynamic dataset](https://discourse.slicer.org/t/gpu-raycasting-with-sparse-dynamic-dataset/13543)

<div class="topic-metadata">

**Author:** [@Zerfox](https://discourse.slicer.org/u/Zerfox)\
**Replies:** 2\
**Last updated:** [September 18, 2020, 4:57pm UTC](https://discourse.slicer.org/t/gpu-raycasting-with-sparse-dynamic-dataset/13543 "2020-09-18T16:57:57Z")

</div>

Dear all, First some background information: I have implemented a so-called visitation map, which is a 3D grid of voxels where each voxel/cell stores a certain frequency. The visitation map is very sparse and the cells …

---

## [.s4ext File gerenation problem](https://discourse.slicer.org/t/s4ext-file-gerenation-problem/13511)

<div class="topic-metadata">

**Author:** [@Viniciuscob](https://discourse.slicer.org/u/Viniciuscob)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 1:58am UTC](https://discourse.slicer.org/t/s4ext-file-gerenation-problem/13511 "2020-09-17T01:58:46Z")

</div>

Hello, My extension has already been submitted on github. Now, we just need to update the .s4ext file on Slicer github. However, we are having a hard time in this .s4ext file step. Searching the discussion forum, i foun…

---

## [How to replace the annotation fiducial placement widget with the plane fiducial widget in AIAA](https://discourse.slicer.org/t/how-to-replace-the-annotation-fiducial-placement-widget-with-the-plane-fiducial-widget-in-aiaa/13484)

<div class="topic-metadata">

**Author:** [@Yusuke](https://discourse.slicer.org/u/Yusuke)\
**Replies:** 0\
**Last updated:** [September 14, 2020, 7:39pm UTC](https://discourse.slicer.org/t/how-to-replace-the-annotation-fiducial-placement-widget-with-the-plane-fiducial-widget-in-aiaa/13484 "2020-09-14T19:39:44Z")

</div>

Hi, I would like to know how to replace the annotation fiducial placement widget with the plane fiducial widget in AIAA. In qt windows, for some reasons, the widget is marked as ‘Break Layout’. In .ui file, I be…

---

## [How to get boundary coordinate of the markup plane in IJK](https://discourse.slicer.org/t/how-to-get-boundary-coordinate-of-the-markup-plane-in-ijk/13446)

<div class="topic-metadata">

**Author:** [@Yusuke](https://discourse.slicer.org/u/Yusuke)\
**Replies:** 2\
**Last updated:** [September 14, 2020, 7:19pm UTC](https://discourse.slicer.org/t/how-to-get-boundary-coordinate-of-the-markup-plane-in-ijk/13446 "2020-09-14T19:19:32Z")

</div>

Hi, I would like to know how to get coordinates for the boundaries of a markup plane in IJK. In fiducial point case, my understanding is that we can get the following codes: world = \[0, 0, 0, 0\] fiducialNode.GetNthFi…

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

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