# Development

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

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

**Page:** 62

---

## [Raise only Add Files GUI](https://discourse.slicer.org/t/raise-only-add-files-gui/21290)

<div class="topic-metadata">

**Author:** [@Srijeet\_Chatterjee](https://discourse.slicer.org/u/Srijeet_Chatterjee)\
**Replies:** 6\
**Last updated:** [January 3, 2022, 11:06pm UTC](https://discourse.slicer.org/t/raise-only-add-files-gui/21290 "2022-01-03T23:06:40Z")

</div>

Hello Everyone, I want to create a simple button in a scripted (python) module,such that on clicked ideally that should raise the “Add Data” widget. Ideally I want it be preselected as the file loader only i.e the “Choo…

---

## [Lights module - revert to un-lit?](https://discourse.slicer.org/t/lights-module-revert-to-un-lit/21310)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 0\
**Last updated:** [January 2, 2022, 5:16pm UTC](https://discourse.slicer.org/t/lights-module-revert-to-un-lit/21310 "2022-01-02T17:16:02Z")

</div>

Is there a way to completely revert to an un-lit scene once lights have been set up and used? The “Default” setting isn’t exactly the original un-lit scene. Also, un-checking a view in “Managed views” doesn’t remove the …

---

## [Event when node visibility is changed](https://discourse.slicer.org/t/event-when-node-visibility-is-changed/21013)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 7\
**Last updated:** [January 2, 2022, 2:06am UTC](https://discourse.slicer.org/t/event-when-node-visibility-is-changed/21013 "2022-01-02T02:06:49Z")

</div>

Hi, Can’t find an event that is triggered when node visibility is changed. Does vtkMRMLDisplayableNode triggers such event?

---

## [Best way to record a video of live use of Slicer](https://discourse.slicer.org/t/best-way-to-record-a-video-of-live-use-of-slicer/21100)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 8\
**Last updated:** [January 1, 2022, 8:54pm UTC](https://discourse.slicer.org/t/best-way-to-record-a-video-of-live-use-of-slicer/21100 "2022-01-01T20:54:51Z")

</div>

Hi devs. For what I have read I should use C++ CLI modules so Slicer GUI doesn’t turn unresponsive to achieve my goal. That would be a CLI module call to takeScreenShot every 33mseg after a button is pressed, till that …

---

## [Change vtkStencil used for the display of volumes](https://discourse.slicer.org/t/change-vtkstencil-used-for-the-display-of-volumes/21292)

<div class="topic-metadata">

**Author:** [@riep](https://discourse.slicer.org/u/riep)\
**Replies:** 0\
**Last updated:** [December 31, 2021, 2:54pm UTC](https://discourse.slicer.org/t/change-vtkstencil-used-for-the-display-of-volumes/21292 "2021-12-31T14:54:50Z")

</div>

Dear everyone, I am working on a python script that overwrite the Background Image Stencil Data used in the display volume node. It is natively defined in Slicer/vtkMRMLSliceLayerLogic.cxx at 0673b1c05404b21d259cfaf85a…

---

## [How to modify mainwindow in startup without using .slicerrc.py file](https://discourse.slicer.org/t/how-to-modify-mainwindow-in-startup-without-using-slicerrc-py-file/21278)

<div class="topic-metadata">

**Author:** [@Dwij\_Mistry](https://discourse.slicer.org/u/Dwij_Mistry)\
**Replies:** 2\
**Last updated:** [December 30, 2021, 2:33pm UTC](https://discourse.slicer.org/t/how-to-modify-mainwindow-in-startup-without-using-slicerrc-py-file/21278 "2021-12-30T14:33:25Z")

</div>

We are having script repository in Slicer which we have to keep in executable folder. (So while loading it will do the changes) But I dont want to use rc file. Is there any method to call .py file in startup in the EXE…

---

## [Show changes in Crop Volume interface](https://discourse.slicer.org/t/show-changes-in-crop-volume-interface/21250)

<div class="topic-metadata">

**Author:** [@bserrano](https://discourse.slicer.org/u/bserrano)\
**Replies:** 2\
**Last updated:** [December 30, 2021, 9:49am UTC](https://discourse.slicer.org/t/show-changes-in-crop-volume-interface/21250 "2021-12-30T09:49:21Z")

</div>

Hi all, I am writing my own code to crop a volume. What I have is: #Input volume slicer.util.selectModule('CropVolume') cropVolumeNode = slicer.vtkMRMLCropVolumeParametersNode() cropVolumeNode.SetScene(slicer.mrmlScene…

---

## [Why I can't set my own transform matrix while using VolumeReconstructor?](https://discourse.slicer.org/t/why-i-cant-set-my-own-transform-matrix-while-using-volumereconstructor/21244)

<div class="topic-metadata">

**Author:** [@Junshi\_Peng](https://discourse.slicer.org/u/Junshi_Peng)\
**Replies:** 1\
**Last updated:** [December 29, 2021, 5:45pm UTC](https://discourse.slicer.org/t/why-i-cant-set-my-own-transform-matrix-while-using-volumereconstructor/21244 "2021-12-29T17:45:30Z")

</div>

In my tracking case, I’ve only appied one set of tracker on ultrasound probe, and I would like to reconstruct the volume from the input ultrasound image set and the corresponding transforms data of the moving probe. In …

---

## [How to hide vtkMRMLAnnotationROINode only in 3d view?](https://discourse.slicer.org/t/how-to-hide-vtkmrmlannotationroinode-only-in-3d-view/21178)

<div class="topic-metadata">

**Author:** [@StephenLeePeng](https://discourse.slicer.org/u/StephenLeePeng)\
**Replies:** 4\
**Last updated:** [December 28, 2021, 2:32am UTC](https://discourse.slicer.org/t/how-to-hide-vtkmrmlannotationroinode-only-in-3d-view/21178 "2021-12-28T02:32:50Z")

</div>

I have a requirement: When I switch to Volume Rendering module, I can Enable and Display ROI. Then a AnnotationROI node will generate and display in 3d view and three slice views. But I want to hide this AnnotationROI …

---

## [How to get the parameters of a segment with python?](https://discourse.slicer.org/t/how-to-get-the-parameters-of-a-segment-with-python/21230)

<div class="topic-metadata">

**Author:** [@YuXiaofeng](https://discourse.slicer.org/u/YuXiaofeng)\
**Replies:** 1\
**Last updated:** [December 27, 2021, 10:32pm UTC](https://discourse.slicer.org/t/how-to-get-the-parameters-of-a-segment-with-python/21230 "2021-12-27T22:32:37Z")

</div>

Hi everyone, I’m using a Slicer version 4.13.0-2021-12-01 for Ubuntu18.04. I want to get the Maximum slicer, length and short diameter, CT value and maximum surface area of a segment with python. But I have no idea abo…

---

## [How to "paint" a pedicle screw by hounsfield unit?](https://discourse.slicer.org/t/how-to-paint-a-pedicle-screw-by-hounsfield-unit/21185)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 2\
**Last updated:** [December 23, 2021, 5:47pm UTC](https://discourse.slicer.org/t/how-to-paint-a-pedicle-screw-by-hounsfield-unit/21185 "2021-12-23T17:47:07Z")

</div>

How to “paint” a pedicle screw by hounsfield unit ? @lassoan@Juicy@jamesobutler @jcfr @pieper I want to “paint” a pedicle screw(a Cylinder in pedicle) by hounsfield unit , e.g. if a point in soft tissue is red ,elif in…

---

## [Set filter to the scene based on displayable node attributes](https://discourse.slicer.org/t/set-filter-to-the-scene-based-on-displayable-node-attributes/21138)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 4\
**Last updated:** [December 23, 2021, 2:06am UTC](https://discourse.slicer.org/t/set-filter-to-the-scene-based-on-displayable-node-attributes/21138 "2021-12-23T02:06:58Z")

</div>

Hi, I’m looking for a way to hide/show displayable nodes based on their attribute value. I can see an option: to filter the scene at once and after that user can display recently hided nodes (if he wants) by clicking o…

---

## [Antialiasing in in slice (MPR) views](https://discourse.slicer.org/t/antialiasing-in-in-slice-mpr-views/21140)

<div class="topic-metadata">

**Author:** [@riep](https://discourse.slicer.org/u/riep)\
**Replies:** 6\
**Last updated:** [December 21, 2021, 8:14pm UTC](https://discourse.slicer.org/t/antialiasing-in-in-slice-mpr-views/21140 "2021-12-21T20:14:23Z")

</div>

Hi everyone, I was wondering if there was an easy way to reduce aliasing effects in MPR view of the orientation interactor and models. We are developing on slicer 4.11.20210226 but this is also visible on master bran…

---

## [How to create a text box with images in python](https://discourse.slicer.org/t/how-to-create-a-text-box-with-images-in-python/21153)

<div class="topic-metadata">

**Author:** [@tsims](https://discourse.slicer.org/u/tsims)\
**Replies:** 1\
**Last updated:** [December 21, 2021, 3:01pm UTC](https://discourse.slicer.org/t/how-to-create-a-text-box-with-images-in-python/21153 "2021-12-21T15:01:17Z")

</div>

Hi everyone, as part of a slicer extension I am working on I was hoping to create a section where I could place demonstration images and text to serve as sort of tutorial to people using the modules, something like the …

---

## [Export a transformation matrix through VS Code without opening 3D Slicer](https://discourse.slicer.org/t/export-a-transformation-matrix-through-vs-code-without-opening-3d-slicer/21163)

<div class="topic-metadata">

**Author:** [@Martina](https://discourse.slicer.org/u/Martina)\
**Replies:** 0\
**Last updated:** [December 21, 2021, 5:15am UTC](https://discourse.slicer.org/t/export-a-transformation-matrix-through-vs-code-without-opening-3d-slicer/21163 "2021-12-21T05:15:19Z")

</div>

Operating system: Microsoft Windows 10 Home Slicer version: Slicer 4.11.20210226 VS Code version: Visual Studio Code 1.63.2 Hi all, I am new to 3D Slicer and VS Code. I want to export a transformation matrix from 3…

---

## [Build Errors while building custom Slicer](https://discourse.slicer.org/t/build-errors-while-building-custom-slicer/21139)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 2\
**Last updated:** [December 21, 2021, 1:21am UTC](https://discourse.slicer.org/t/build-errors-while-building-custom-slicer/21139 "2021-12-21T01:21:37Z")

</div>

OS: Ubuntu 20.04 Hi. I have built Slicer (v4.11.20210226) before successfully. Now, I want to build a custom Slicer with change in logo, style, etc. So, I followed the instructions given in https://www.kitware.com/slic…

---

## [How to show/hide volume node from python script](https://discourse.slicer.org/t/how-to-show-hide-volume-node-from-python-script/21078)

<div class="topic-metadata">

**Author:** [@ziri](https://discourse.slicer.org/u/ziri)\
**Replies:** 5\
**Last updated:** [December 19, 2021, 9:33pm UTC](https://discourse.slicer.org/t/how-to-show-hide-volume-node-from-python-script/21078 "2021-12-19T21:33:26Z")

</div>

Hi, I’m trying to create a node from numpy array as shown below: nodeName = “NewVolumeNode” voxelType=vtk.VTK\_UNSIGNED\_CHAR imageOrigin = \[0.0, 0.0, 0.0\] imageSpacing = \[1.0, 1.0, 1.0\] imageDirections = \[\[1,0,0\], …

---

## [How to getcenter of vtkplane by python?](https://discourse.slicer.org/t/how-to-getcenter-of-vtkplane-by-python/21135)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 1\
**Last updated:** [December 19, 2021, 3:12pm UTC](https://discourse.slicer.org/t/how-to-getcenter-of-vtkplane-by-python/21135 "2021-12-19T15:12:35Z")

</div>

How to getcenter of vtkplane by python? @lassoan@Juicy@jamesobutler @jcfr @pieper

---

## [C++ debugging SlicerCAT takes about 10 minutes to start on Ubuntu](https://discourse.slicer.org/t/c-debugging-slicercat-takes-about-10-minutes-to-start-on-ubuntu/21130)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 1\
**Last updated:** [December 19, 2021, 2:52pm UTC](https://discourse.slicer.org/t/c-debugging-slicercat-takes-about-10-minutes-to-start-on-ubuntu/21130 "2021-12-19T14:52:34Z")

</div>

Hi, Is it ok that SicerCAT takes about 10 minutes to start debugging using C++? I use QtCreator 4.15.1 on Ubuntu 20.04, gcc 9.3, debugger usr/bin/gdb PC has 4 physical and 4 logical cores The processor: Intel(R) Core…

---

## [SlicerCAT breaks down when \`vtkMRMLMarkupsFiducialNode::EndModify()\` is called](https://discourse.slicer.org/t/slicercat-breaks-down-when-vtkmrmlmarkupsfiducialnode-endmodify-is-called/21122)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 3\
**Last updated:** [December 18, 2021, 5:59pm UTC](https://discourse.slicer.org/t/slicercat-breaks-down-when-vtkmrmlmarkupsfiducialnode-endmodify-is-called/21122 "2021-12-18T17:59:12Z")

</div>

Hi, Via GUI interface I add control points to vtkMRMLMarkupsFiducialNode one by one. I’m able to add the first control point but when I’m trying to add second control point SlicerCAT falls down on the line fiducialNode…

---

## [Save parameters as config object](https://discourse.slicer.org/t/save-parameters-as-config-object/21103)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 4\
**Last updated:** [December 18, 2021, 4:57am UTC](https://discourse.slicer.org/t/save-parameters-as-config-object/21103 "2021-12-18T04:57:07Z")

</div>

Hi. I have written a scripted module which has some parameters in the form of sliderwidgets. Currently, I am saving these as .cfg file through the code and reading them next time the same module is instantiated. I was w…

---

## [Working with markups](https://discourse.slicer.org/t/working-with-markups/21023)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 3\
**Last updated:** [December 18, 2021, 12:22am UTC](https://discourse.slicer.org/t/working-with-markups/21023 "2021-12-18T00:22:47Z")

</div>

Hi, My understanding about markups is pretty limited and I don’t have much experience yet. From C++ I need to visualize points of constant size regardless of the zoom. Probably it would be pretty nice if every point c…

---

## [Loading pickled data](https://discourse.slicer.org/t/loading-pickled-data/21087)

<div class="topic-metadata">

**Author:** [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)\
**Replies:** 3\
**Last updated:** [December 17, 2021, 4:02pm UTC](https://discourse.slicer.org/t/loading-pickled-data/21087 "2021-12-17T16:02:25Z")

</div>

I want to load pickled data from the GUI in my custom extension. When using the ‘Add data’ dialog to try to load such data, Slicer throws an error (Error - load failed). As a workaround, I thought I could use the ‘Add …

---

## [Connect Slicer's built-in Python to Python IDE](https://discourse.slicer.org/t/connect-slicers-built-in-python-to-python-ide/13046)

<div class="topic-metadata">

**Author:** [@kleingeo](https://discourse.slicer.org/u/kleingeo)\
**Replies:** 9\
**Last updated:** [December 17, 2021, 3:29pm UTC](https://discourse.slicer.org/t/connect-slicers-built-in-python-to-python-ide/13046 "2021-12-17T15:29:33Z")

</div>

I am trying to play around with a bunch of packages with Slicer, some of which are called through the command line/terminal. To make my life easier, I’m trying to connect the build-in python interpreter with Slicer to th…

---

## [Custom module presentation : Straight Curve Gauge](https://discourse.slicer.org/t/custom-module-presentation-straight-curve-gauge/21099)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 2\
**Last updated:** [December 17, 2021, 7:35am UTC](https://discourse.slicer.org/t/custom-module-presentation-straight-curve-gauge/21099 "2021-12-17T07:35:00Z")

</div>

Custom module presentation : Straight Curve Gauge To core developers, I wish to propose this custom module for inclusion in a relevant Slicer repository. I am aware that it’s possible to propose it as a custom downloa…

---

## [Transformed Volumes Not Showing when Rendered with VTK GPU Ray Casting](https://discourse.slicer.org/t/transformed-volumes-not-showing-when-rendered-with-vtk-gpu-ray-casting/20986)

<div class="topic-metadata">

**Author:** [@jasoncox13](https://discourse.slicer.org/u/jasoncox13)\
**Replies:** 4\
**Last updated:** [December 16, 2021, 5:34pm UTC](https://discourse.slicer.org/t/transformed-volumes-not-showing-when-rendered-with-vtk-gpu-ray-casting/20986 "2021-12-16T17:34:51Z")

</div>

Operating system: Windows Slicer version: 4.13.0-2021-11-18 Expected behavior: After applying a centering transform to an eligible volume in the Volumes module, switching to the Transforms module and selecting “volume …

---

## [CMake Error at CMake/SlicerBlockFindQtAndCheckVersion](https://discourse.slicer.org/t/cmake-error-at-cmake-slicerblockfindqtandcheckversion/21079)

<div class="topic-metadata">

**Author:** [@Fabiola](https://discourse.slicer.org/u/Fabiola)\
**Replies:** 2\
**Last updated:** [December 16, 2021, 1:05pm UTC](https://discourse.slicer.org/t/cmake-error-at-cmake-slicerblockfindqtandcheckversion/21079 "2021-12-16T13:05:24Z")

</div>

Hello, I am trying to build Slicer on Ubuntu 20.04 (with NVIDIA GK 107M GeForce GT 750 graphics card). Fighting with an OpenGL cmake error which I can’t win a few days now, can someone help me please with ideas, directi…

---

## [Today's preview release for macOS is empty](https://discourse.slicer.org/t/todays-preview-release-for-macos-is-empty/21077)

<div class="topic-metadata">

**Author:** [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Replies:** 3\
**Last updated:** [December 15, 2021, 5:14pm UTC](https://discourse.slicer.org/t/todays-preview-release-for-macos-is-empty/21077 "2021-12-15T17:14:35Z")

</div>

The zipped file at https://download.slicer.org/bitstream/61b9a32a342a877cb3ebaba6 is empty.

---

## [How to remove the SubjectHierarchyNode (e.g. folder)and its items?](https://discourse.slicer.org/t/how-to-remove-the-subjecthierarchynode-e-g-folder-and-its-items/21070)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 7\
**Last updated:** [December 15, 2021, 2:01pm UTC](https://discourse.slicer.org/t/how-to-remove-the-subjecthierarchynode-e-g-folder-and-its-items/21070 "2021-12-15T14:01:18Z")

</div>

How to remove the SubjectHierarchyNode (e.g. folder)and its items? 可能是Subject Hierarchy太大了吧, 进行到一个数量就会崩掉, 所以我想分阶段, 把前面那个节段的nodes放到一个folder, 保存后删除再进行下个节段的操作, 我已经把它们装进了一个folder, 该怎么删掉这个folder呢? It may be that the Subject…

---

## [API change in SubjectHierarchyNode?](https://discourse.slicer.org/t/api-change-in-subjecthierarchynode/838)

<div class="topic-metadata">

**Author:** [@jonieva](https://discourse.slicer.org/u/jonieva)\
**Replies:** 6\
**Last updated:** [December 15, 2021, 3:55am UTC](https://discourse.slicer.org/t/api-change-in-subjecthierarchynode/838 "2021-12-15T03:55:31Z")

</div>

I’m getting an error when trying to access the HierarchyNode corresponding to the MRLMScene node. I’m doing: shNode = slicer.vtkMRMLSubjectHierarchyNode.GetSubjectHierarchyNode(slicer.mrmlScene) which was working fine…

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

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