# Development

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

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

**Page:** 75

---

## [Add Recently Loaded Files](https://discourse.slicer.org/t/add-recently-loaded-files/18140)

<div class="topic-metadata">

**Author:** [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Replies:** 1\
**Last updated:** [June 17, 2021, 1:28am UTC](https://discourse.slicer.org/t/add-recently-loaded-files/18140 "2021-06-17T01:28:40Z")

</div>

Hello, I’ve add these to .slicerrc.py to open the DICOM import popup- slicer.util.selectModule(‘DICOM’) slicer.util.getModuleGui(‘DICOM’).importFolder() Now, I wanted to add “recently opened DICOM” in the pop up. Wha…

---

## [Slicer interact with external deep learning segmentation software](https://discourse.slicer.org/t/slicer-interact-with-external-deep-learning-segmentation-software/18129)

<div class="topic-metadata">

**Author:** [@bywbilly](https://discourse.slicer.org/u/bywbilly)\
**Replies:** 6\
**Last updated:** [June 16, 2021, 5:38pm UTC](https://discourse.slicer.org/t/slicer-interact-with-external-deep-learning-segmentation-software/18129 "2021-06-16T17:38:52Z")

</div>

Hi, I am new to the slicer. I would like to incorporate slicer with our own segmentation module. Since our module is doing segmentation step-by-step (e.g., vertebrae by vertebrae), so we would like to show the user par…

---

## [Coordinates extracted from markup control points are inaccurate](https://discourse.slicer.org/t/coordinates-extracted-from-markup-control-points-are-inaccurate/18144)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 5:23pm UTC](https://discourse.slicer.org/t/coordinates-extracted-from-markup-control-points-are-inaccurate/18144 "2021-06-15T17:23:35Z")

</div>

Here is the code to reproduce the bug: import numpy as np lineNode = slicer.mrmlScene.CreateNodeByClass("vtkMRMLMarkupsLineNode") lineNode.SetName("screwLine") slicer.mrmlScene.AddNode(lineNode) #display node of the pl…

---

## [Translate the color dialog](https://discourse.slicer.org/t/translate-the-color-dialog/18071)

<div class="topic-metadata">

**Author:** [@full\_stack\_master](https://discourse.slicer.org/u/full_stack_master)\
**Replies:** 1\
**Last updated:** [June 11, 2021, 9:05pm UTC](https://discourse.slicer.org/t/translate-the-color-dialog/18071 "2021-06-11T21:05:54Z")

</div>

I am going to translate the language of Color dialog Can you help me now

---

## [Clone Segment Button](https://discourse.slicer.org/t/clone-segment-button/18081)

<div class="topic-metadata">

**Author:** [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Replies:** 1\
**Last updated:** [June 11, 2021, 5:53pm UTC](https://discourse.slicer.org/t/clone-segment-button/18081 "2021-06-11T17:53:37Z")

</div>

Hello, I wanted to explore “clone” particular segment but couldn’t find the file to change clone button functionalities. Though I’ve explored this file:-"…\\Modules\\Loadable\\Segmentations\\Widgets\\qMRMLSegmentEditorWidge…

---

## [Share Collapsible button across multiple tabs - Qt](https://discourse.slicer.org/t/share-collapsible-button-across-multiple-tabs-qt/18069)

<div class="topic-metadata">

**Author:** [@agporto](https://discourse.slicer.org/u/agporto)\
**Replies:** 4\
**Last updated:** [June 11, 2021, 5:26pm UTC](https://discourse.slicer.org/t/share-collapsible-button-across-multiple-tabs-qt/18069 "2021-06-11T17:26:39Z")

</div>

I am updating one of SlicerMorph’s tools with several suggestions that were made by users. During that process, one question occured to me. Is it possible to have a single Collapsible button be shared across multiple tab…

---

## [Display 3d view in a separate window](https://discourse.slicer.org/t/display-3d-view-in-a-separate-window/8236)

<div class="topic-metadata">

**Author:** [@rprueckl](https://discourse.slicer.org/u/rprueckl)\
**Replies:** 4\
**Last updated:** [June 10, 2021, 3:14pm UTC](https://discourse.slicer.org/t/display-3d-view-in-a-separate-window/8236 "2021-06-10T15:14:08Z")

</div>

Hi - I remember to read about this subject somewhere, but I am unable to find now where it was. I want to display a 3D view in a dialog (e.g. to preview an STL file to be loaded). Is there an integrated way to create a …

---

## [Import files into DICOM database](https://discourse.slicer.org/t/import-files-into-dicom-database/18049)

<div class="topic-metadata">

**Author:** [@OpenSource\_Contri](https://discourse.slicer.org/u/OpenSource_Contri)\
**Replies:** 6\
**Last updated:** [June 10, 2021, 2:43pm UTC](https://discourse.slicer.org/t/import-files-into-dicom-database/18049 "2021-06-10T14:43:22Z")

</div>

Hello, I wanted to access “Import DICOM files” modal dialog window to open automatically just after opening of application but not by clicking button “Import DICOM files”. Includes “…\\Modules\\Scripted\\DICOM.py” “…\\Mo…

---

## [Will Slicer automatically update the main program?](https://discourse.slicer.org/t/will-slicer-automatically-update-the-main-program/18040)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [June 9, 2021, 9:08pm UTC](https://discourse.slicer.org/t/will-slicer-automatically-update-the-main-program/18040 "2021-06-09T21:08:02Z")

</div>

Will Slicer automatically update the main program? I remember that these two functions were not available when I first installed it.

---

## [Add environment variable for Slicer application](https://discourse.slicer.org/t/add-environment-variable-for-slicer-application/754)

<div class="topic-metadata">

**Author:** [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Replies:** 4\
**Last updated:** [June 9, 2021, 2:00pm UTC](https://discourse.slicer.org/t/add-environment-variable-for-slicer-application/754 "2021-06-09T14:00:45Z")

</div>

Hello, With all the great new nightly builds for Slicer, the installed executables obviously reside in different folders for different versions (e.g. %PROGRAMFILES%\\Slicer 4.7.0-2017-07-22\\Slicer.exe). I think it would …

---

## [Is Slicer's Python environment complete?](https://discourse.slicer.org/t/is-slicers-python-environment-complete/18038)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [June 9, 2021, 12:58pm UTC](https://discourse.slicer.org/t/is-slicers-python-environment-complete/18038 "2021-06-09T12:58:14Z")

</div>

Is the Python in slicer the complete version?

---

## [Midas + Slicer + ParaviewWeb Kitware Demo - Anything more?](https://discourse.slicer.org/t/midas-slicer-paraviewweb-kitware-demo-anything-more/8887)

<div class="topic-metadata">

**Author:** [@Morasta](https://discourse.slicer.org/u/Morasta)\
**Replies:** 8\
**Last updated:** [June 9, 2021, 5:58am UTC](https://discourse.slicer.org/t/midas-slicer-paraviewweb-kitware-demo-anything-more/8887 "2021-06-09T05:58:48Z")

</div>

While working on a paraviewweb/vtk project, I came across this old kitware video: https://www.youtube.com/watch?v=jbq26vWdNdE&feature=youtu.be. Curious if anyone here knows anything more about it as the notes in the vid…

---

## [How to enable apply button in new created Extension Wizard module?](https://discourse.slicer.org/t/how-to-enable-apply-button-in-new-created-extension-wizard-module/10608)

<div class="topic-metadata">

**Author:** [@Illusion](https://discourse.slicer.org/u/Illusion)\
**Replies:** 9\
**Last updated:** [June 8, 2021, 2:51pm UTC](https://discourse.slicer.org/t/how-to-enable-apply-button-in-new-created-extension-wizard-module/10608 "2021-06-08T14:51:37Z")

</div>

Hello, I am new in Slicer programming. Created a module using extension wizard, however, the self.applyButton in Widget class is always disabled. I use PyCharm to debug, and in the function ‘’’ def onSelect(self): …

---

## [Show type of Node in SubjectHierarchyTreeView](https://discourse.slicer.org/t/show-type-of-node-in-subjecthierarchytreeview/17954)

<div class="topic-metadata">

**Author:** [@ond12](https://discourse.slicer.org/u/ond12)\
**Replies:** 4\
**Last updated:** [June 8, 2021, 12:23pm UTC](https://discourse.slicer.org/t/show-type-of-node-in-subjecthierarchytreeview/17954 "2021-06-08T12:23:39Z")

</div>

Hello, I Would like to show only ““vtkMRMLMarkupsFiducialNode”” in my SubjectHierarchyTreeView widget. I manage to hide the majority of node types thanks to this snipet :slight\_smile: self.shFiducialTreeView = slicer.…

---

## [Get the dimensions of the bounding box with python](https://discourse.slicer.org/t/get-the-dimensions-of-the-bounding-box-with-python/17968)

<div class="topic-metadata">

**Author:** [@jmhuie](https://discourse.slicer.org/u/jmhuie)\
**Replies:** 3\
**Last updated:** [June 7, 2021, 10:44pm UTC](https://discourse.slicer.org/t/get-the-dimensions-of-the-bounding-box-with-python/17968 "2021-06-07T22:44:05Z")

</div>

Hi, I am trying to create an annotation ROI that is the size of the bounding box using python. I’m envisioning two main steps but I can’t quite figure out how to do all of it (in python). Adjust the 3D bounding box to …

---

## [Pythonslicer.exe install issue](https://discourse.slicer.org/t/pythonslicer-exe-install-issue/17989)

<div class="topic-metadata">

**Author:** [@user\_ghost](https://discourse.slicer.org/u/user_ghost)\
**Replies:** 1\
**Last updated:** [June 7, 2021, 6:46pm UTC](https://discourse.slicer.org/t/pythonslicer-exe-install-issue/17989 "2021-06-07T18:46:57Z")

</div>

when i used pythonslicer.exe to install a package called probreg and it shows there is no a file called python.h how can i resolve this problems

---

## [SlicerRT dose volume object](https://discourse.slicer.org/t/slicerrt-dose-volume-object/17985)

<div class="topic-metadata">

**Author:** [@edwardwang1](https://discourse.slicer.org/u/edwardwang1)\
**Replies:** 3\
**Last updated:** [June 7, 2021, 6:40pm UTC](https://discourse.slicer.org/t/slicerrt-dose-volume-object/17985 "2021-06-07T18:40:26Z")

</div>

Hi there, I am doing some work where I am creating radiation dose distributions for simulated tumours from scratch (rather than exporting from a RT planning software). In Python I generate a 3D numpy array which I conve…

---

## [Stop module exit](https://discourse.slicer.org/t/stop-module-exit/17986)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 3\
**Last updated:** [June 7, 2021, 6:38pm UTC](https://discourse.slicer.org/t/stop-module-exit/17986 "2021-06-07T18:38:24Z")

</div>

Hello! Is there a way to stop a module from exiting, from inside its own exit() function? I would like to offer the user the option to cancel his exit from the module to allow him finish some operations that he may want …

---

## [Whether to consider adding a reference chart tool to the left of the 3D view](https://discourse.slicer.org/t/whether-to-consider-adding-a-reference-chart-tool-to-the-left-of-the-3d-view/17970)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 3\
**Last updated:** [June 7, 2021, 4:17am UTC](https://discourse.slicer.org/t/whether-to-consider-adding-a-reference-chart-tool-to-the-left-of-the-3d-view/17970 "2021-06-07T04:17:39Z")

</div>

For some projections or orthogonal views, I think it is very helpful to add a grid reference. Is there a script to achieve this effect?

---

## [Incorrect volume rendering bounds - first and last slice](https://discourse.slicer.org/t/incorrect-volume-rendering-bounds-first-and-last-slice/17827)

<div class="topic-metadata">

**Author:** [@alireza](https://discourse.slicer.org/u/alireza)\
**Replies:** 9\
**Last updated:** [June 7, 2021, 12:06am UTC](https://discourse.slicer.org/t/incorrect-volume-rendering-bounds-first-and-last-slice/17827 "2021-06-07T00:06:30Z")

</div>

Summary: volume rendering bounds are incorrect for the first and last slice and not consistent for CPU, GPU, and multi-volume settings I was getting some wrong bounds on the volume rendering for vtk.js, but it seems to …

---

## [Can we change the startup picture](https://discourse.slicer.org/t/can-we-change-the-startup-picture/17951)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 11:50pm UTC](https://discourse.slicer.org/t/can-we-change-the-startup-picture/17951 "2021-06-04T23:50:26Z")

</div>

I want to make the software more distinctive, how can I change this startup background?How to replace it

---

## [How to get intensity range of a volume?](https://discourse.slicer.org/t/how-to-get-intensity-range-of-a-volume/17949)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 4:15pm UTC](https://discourse.slicer.org/t/how-to-get-intensity-range-of-a-volume/17949 "2021-06-04T16:15:01Z")

</div>

how to get a scalar range value of a volume.

---

## [Threshold scalar volume to labelmap](https://discourse.slicer.org/t/threshold-scalar-volume-to-labelmap/4457)

<div class="topic-metadata">

**Author:** [@kayarre](https://discourse.slicer.org/u/kayarre)\
**Replies:** 11\
**Last updated:** [October 22, 2018, 11:01pm UTC](https://discourse.slicer.org/t/threshold-scalar-volume-to-labelmap/4457 "2018-10-22T23:01:33Z")

</div>

I am trying to use the python interface to load a (float) scalar volume in the form of a signed distance field want to apply thresholdscalarvolume to generate a label map with everything below 0.0. It doesn’t seem to b…

---

## [How to change Segment Editor Paint effect options from Python script](https://discourse.slicer.org/t/how-to-change-segment-editor-paint-effect-options-from-python-script/17944)

<div class="topic-metadata">

**Author:** [@Chintha\_Siva\_Prasad](https://discourse.slicer.org/u/Chintha_Siva_Prasad)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 4:00am UTC](https://discourse.slicer.org/t/how-to-change-segment-editor-paint-effect-options-from-python-script/17944 "2021-06-04T04:00:25Z")

</div>

How can I enable the sphere brush for 3d view in ‘erase’ option and control the sphere radius through the script?

---

## [Applying color to volume through script?](https://discourse.slicer.org/t/applying-color-to-volume-through-script/17923)

<div class="topic-metadata">

**Author:** [@Chintha\_Siva\_Prasad](https://discourse.slicer.org/u/Chintha_Siva_Prasad)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 1:43pm UTC](https://discourse.slicer.org/t/applying-color-to-volume-through-script/17923 "2021-06-02T13:43:06Z")

</div>

I have a volume and want to apply color to it as we do in the segment editor module.How can I apply color to it from code?

---

## [(Absolute or Iterative Relative) Fuzzy Connectedness Extension?](https://discourse.slicer.org/t/absolute-or-iterative-relative-fuzzy-connectedness-extension/17846)

<div class="topic-metadata">

**Author:** [@bdottinger](https://discourse.slicer.org/u/bdottinger)\
**Replies:** 4\
**Last updated:** [June 2, 2021, 2:08pm UTC](https://discourse.slicer.org/t/absolute-or-iterative-relative-fuzzy-connectedness-extension/17846 "2021-06-02T14:08:38Z")

</div>

Hi all, I was wondering if there were any plans to ever create a segmentation module that uses the Iterative Relative Fuzzy Connectedness Algorithm (or Absolute FC). The only existing dedicated software for IRFC is CAVA…

---

## [Observe camera node events in a loadable module logic](https://discourse.slicer.org/t/observe-camera-node-events-in-a-loadable-module-logic/17879)

<div class="topic-metadata">

**Author:** [@Mik](https://discourse.slicer.org/u/Mik)\
**Replies:** 3\
**Last updated:** [May 31, 2021, 9:18pm UTC](https://discourse.slicer.org/t/observe-camera-node-events-in-a-loadable-module-logic/17879 "2021-05-31T21:18:28Z")

</div>

Are there any specific requirements to observe vtkMRMLCameraNode events in C++ module logic? Python code works as it should, and i can see “update beam” message def updateBeamFromCamera(caller=None, event=None): prin…

---

## [How to remove some segment editor effects](https://discourse.slicer.org/t/how-to-remove-some-segment-editor-effects/16162)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 5\
**Last updated:** [May 31, 2021, 6:46pm UTC](https://discourse.slicer.org/t/how-to-remove-some-segment-editor-effects/16162 "2021-05-31T18:46:29Z")

</div>

Operating system: Windows 10 Slicer version:4.11.202.00930 I am trying to create a new module from the segment editor module and need to remove some of the editor effects that I won’t be needing. Is there any way to do…

---

## [Mask volume using Python scripting](https://discourse.slicer.org/t/mask-volume-using-python-scripting/17814)

<div class="topic-metadata">

**Author:** [@omnikron](https://discourse.slicer.org/u/omnikron)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 5:01pm UTC](https://discourse.slicer.org/t/mask-volume-using-python-scripting/17814 "2021-05-26T17:01:22Z")

</div>

I also would like to perform 3D cropping on volume rendering. Are there any current examples using Python scripted modules that I can study to accomplish this? Thanks in advance.

---

## [How to get GPU texture id(or handle) or texture buffer?](https://discourse.slicer.org/t/how-to-get-gpu-texture-id-or-handle-or-texture-buffer/17760)

<div class="topic-metadata">

**Author:** [@liku](https://discourse.slicer.org/u/liku)\
**Replies:** 8\
**Last updated:** [May 26, 2021, 1:26am UTC](https://discourse.slicer.org/t/how-to-get-gpu-texture-id-or-handle-or-texture-buffer/17760 "2021-05-26T01:26:44Z")

</div>

I loaded sample data and displayed volume in 3D view. Now I need to get texture buffer of this volume to do some process. Is there a method to get GPU texture buffer or texture id?

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

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