# Development

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

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

**Page:** 60

---

## [Automatization of cursor visibility](https://discourse.slicer.org/t/automatization-of-cursor-visibility/21848)

<div class="topic-metadata">

**Author:** [@bserrano](https://discourse.slicer.org/u/bserrano)\
**Replies:** 2\
**Last updated:** [February 10, 2022, 4:29pm UTC](https://discourse.slicer.org/t/automatization-of-cursor-visibility/21848 "2022-02-10T16:29:02Z")

</div>

Hi, I want to set the cursor visibility of a centerline automatically. It can be done in module Models → select cursor → Display → Slice Display → Visibility. I tryied to write a code that does it automatically but I c…

---

## [Shows 2D Slices on one 3D view when using dual 3D view](https://discourse.slicer.org/t/shows-2d-slices-on-one-3d-view-when-using-dual-3d-view/21895)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 1\
**Last updated:** [February 10, 2022, 4:23pm UTC](https://discourse.slicer.org/t/shows-2d-slices-on-one-3d-view-when-using-dual-3d-view/21895 "2022-02-10T16:23:57Z")

</div>

Hi all Like figure, I would like to pop up 2D slices view on only one 3D view when using the multi 3D view What is the easiest way to implement this ? Thanks

---

## [Issues with New Module for Numpy Files](https://discourse.slicer.org/t/issues-with-new-module-for-numpy-files/21840)

<div class="topic-metadata">

**Author:** [@stevenagl12](https://discourse.slicer.org/u/stevenagl12)\
**Replies:** 4\
**Last updated:** [February 10, 2022, 9:57am UTC](https://discourse.slicer.org/t/issues-with-new-module-for-numpy-files/21840 "2022-02-10T09:57:44Z")

</div>

Hi, I am trying to work out a new extension that is capable of going into a directory and pulling out all npy or npz files and importing them into 3D slicer as a volume. I am positive that the radio button logic on my co…

---

## [segmentEditor paint](https://discourse.slicer.org/t/segmenteditor-paint/21867)

<div class="topic-metadata">

**Author:** [@wang](https://discourse.slicer.org/u/wang)\
**Replies:** 1\
**Last updated:** [February 9, 2022, 11:02pm UTC](https://discourse.slicer.org/t/segmenteditor-paint/21867 "2022-02-09T23:02:40Z")

</div>

When I use segmentEditor paint I find LeftButtonPressEvent is not triggered. How do I get LeftButtonPressEvent when I use segmentEditor paint. Think you!

---

## [An error occurs during installation of ShapeVariationAnalyzer extension](https://discourse.slicer.org/t/an-error-occurs-during-installation-of-shapevariationanalyzer-extension/21803)

<div class="topic-metadata">

**Author:** [@KIM\_TY](https://discourse.slicer.org/u/KIM_TY)\
**Replies:** 3\
**Last updated:** [February 9, 2022, 10:54pm UTC](https://discourse.slicer.org/t/an-error-occurs-during-installation-of-shapevariationanalyzer-extension/21803 "2022-02-09T22:54:48Z")

</div>

Slicer 4.13.0-2022-02-02 (windows) ShapeRegressionExtension & ShapeVariationAnalyzer Two extension program cannot be installed. An error occurs during installation.

---

## [Why are dimensions transposed in \`arrayFromVolume\`?](https://discourse.slicer.org/t/why-are-dimensions-transposed-in-arrayfromvolume/21873)

<div class="topic-metadata">

**Author:** [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Replies:** 2\
**Last updated:** [February 9, 2022, 6:59pm UTC](https://discourse.slicer.org/t/why-are-dimensions-transposed-in-arrayfromvolume/21873 "2022-02-09T18:59:30Z")

</div>

In the function slicer.util.arrayFromVolume, it looks like the IJK directions get permuted, see the reversed here. Can anyone explain the reason for this? If I understand correctly, this permutes I,J,K to K,J,I, so for …

---

## [How to access dicom widget components](https://discourse.slicer.org/t/how-to-access-dicom-widget-components/21844)

<div class="topic-metadata">

**Author:** [@Dwij\_Mistry](https://discourse.slicer.org/u/Dwij_Mistry)\
**Replies:** 5\
**Last updated:** [February 9, 2022, 3:36pm UTC](https://discourse.slicer.org/t/how-to-access-dicom-widget-components/21844 "2022-02-09T15:36:50Z")

</div>

How to access DICOM widget from Home / other module slicer.modules.DICOMWidget.ui.label\_5.hide() Scenario: when we are starting a Slicer by default all module are not available in the Memory, In our scenario we are st…

---

## [Is it possible to split a python extension into multiple Files?](https://discourse.slicer.org/t/is-it-possible-to-split-a-python-extension-into-multiple-files/21713)

<div class="topic-metadata">

**Author:** [@tsims](https://discourse.slicer.org/u/tsims)\
**Replies:** 6\
**Last updated:** [February 8, 2022, 8:38pm UTC](https://discourse.slicer.org/t/is-it-possible-to-split-a-python-extension-into-multiple-files/21713 "2022-02-08T20:38:44Z")

</div>

Hi everyone, I have been working on a python extension for slicer, but the .py file has started getting rather large, and I wanted to break it into more digestible chunks. Is it possible to move the Widget and Logic cl…

---

## [Cannot pull activeBrowserNode from qMRMLSequenceBrowserToolBar in Python](https://discourse.slicer.org/t/cannot-pull-activebrowsernode-from-qmrmlsequencebrowsertoolbar-in-python/21857)

<div class="topic-metadata">

**Author:** [@nathanbmnt](https://discourse.slicer.org/u/nathanbmnt)\
**Replies:** 1\
**Last updated:** [February 8, 2022, 8:09pm UTC](https://discourse.slicer.org/t/cannot-pull-activebrowsernode-from-qmrmlsequencebrowsertoolbar-in-python/21857 "2022-02-08T20:09:25Z")

</div>

Hello, I have a Python program where I want to get the active browser node of a qMRMLSequenceBrowserToolBar. However this variable is inaccessible from Python. Any ideas on how to get this variable? https://apidocs.…

---

## [Subject hierarchy throws error message when creating item in the folder](https://discourse.slicer.org/t/subject-hierarchy-throws-error-message-when-creating-item-in-the-folder/21815)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 2\
**Last updated:** [February 7, 2022, 2:35pm UTC](https://discourse.slicer.org/t/subject-hierarchy-throws-error-message-when-creating-item-in-the-folder/21815 "2022-02-07T14:35:51Z")

</div>

Hi, I noticed that if I try to programmatically create new folder in subject hierarchy and add there a node an error message is sent. Though the node is added to the folder. The error message: GetChildByPositionUnderP…

---

## [Qt-scripted-modules are not recognising using python interacter in slicer](https://discourse.slicer.org/t/qt-scripted-modules-are-not-recognising-using-python-interacter-in-slicer/21838)

<div class="topic-metadata">

**Author:** [@Mahesh\_Timmanagoudar](https://discourse.slicer.org/u/Mahesh_Timmanagoudar)\
**Replies:** 0\
**Last updated:** [February 7, 2022, 1:49pm UTC](https://discourse.slicer.org/t/qt-scripted-modules-are-not-recognising-using-python-interacter-in-slicer/21838 "2022-02-07T13:49:35Z")

</div>

I have two python files. 1)plan.py 2)manager.py plan.py - is like below. import manager def plan(baseDir=None): m = manager.managerLogic(baseDir) m.load(‘plan’) plan() Whenever I tried like below commands Its wo…

---

## [Import order in a scripted loadable module](https://discourse.slicer.org/t/import-order-in-a-scripted-loadable-module/21814)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.slicer.org/u/CsatiZoltan)\
**Replies:** 5\
**Last updated:** [February 6, 2022, 7:05pm UTC](https://discourse.slicer.org/t/import-order-in-a-scripted-loadable-module/21814 "2022-02-06T19:05:33Z")

</div>

Problem What is the order of the module loading in a scripted loadable module? I realized that I cannot access the slicer module in a class attribute. For example, the code class materWidget(ScriptedLoadableModuleWidget…

---

## [Extensions for 4.13 R30577 not available fro windows?](https://discourse.slicer.org/t/extensions-for-4-13-r30577-not-available-fro-windows/21819)

<div class="topic-metadata">

**Author:** [@MarkusHeller](https://discourse.slicer.org/u/MarkusHeller)\
**Replies:** 5\
**Last updated:** [February 6, 2022, 5:28pm UTC](https://discourse.slicer.org/t/extensions-for-4-13-r30577-not-available-fro-windows/21819 "2022-02-06T17:28:52Z")

</div>

Sorry for a possibly silly question - I just downloaded and installed the latest 4.13 version for Windows (R30577) and it seems that none of the extensions is currently available for that platform. Did I just happen to g…

---

## [View controller module doesnt check whether the orientation exist or not](https://discourse.slicer.org/t/view-controller-module-doesnt-check-whether-the-orientation-exist-or-not/21820)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 0\
**Last updated:** [February 6, 2022, 11:39am UTC](https://discourse.slicer.org/t/view-controller-module-doesnt-check-whether-the-orientation-exist-or-not/21820 "2022-02-06T11:39:53Z")

</div>

Hi, qSlicerViewControllersModule::writeDefaultSliceViewSettings function tries to determine the patient position based on Axial slice orientation preset. But in custom applications it is possible to redefine presets (to…

---

## [Transition of nightly build from VTK 9.0.20201111 to 9.1.20220125](https://discourse.slicer.org/t/transition-of-nightly-build-from-vtk-9-0-20201111-to-9-1-20220125/21669)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 3\
**Last updated:** [February 4, 2022, 9:59pm UTC](https://discourse.slicer.org/t/transition-of-nightly-build-from-vtk-9-0-20201111-to-9-1-20220125/21669 "2022-02-04T21:59:12Z")

</div>

The pull request updating VTK is ready for review (see PR-5978) It fixes issue #5956: Update VTK9 to the latest master 2022.01.27 Experimental build for PR-5978 have been started. See dashboard …

---

## [Question about transform to the segmentation model](https://discourse.slicer.org/t/question-about-transform-to-the-segmentation-model/21781)

<div class="topic-metadata">

**Author:** [@user5](https://discourse.slicer.org/u/user5)\
**Replies:** 2\
**Last updated:** [February 4, 2022, 3:02pm UTC](https://discourse.slicer.org/t/question-about-transform-to-the-segmentation-model/21781 "2022-02-04T15:02:04Z")

</div>

I would like to use python script to move the segmentation model which is imported by a STL model. I try to use these code to finish it. Script repository — 3D Slicer documentation Script repository — 3D Slicer doc…

---

## [Errors with building slicercat template](https://discourse.slicer.org/t/errors-with-building-slicercat-template/21676)

<div class="topic-metadata">

**Author:** [@Mrwa\_Awoda](https://discourse.slicer.org/u/Mrwa_Awoda)\
**Replies:** 8\
**Last updated:** [February 4, 2022, 12:34am UTC](https://discourse.slicer.org/t/errors-with-building-slicercat-template/21676 "2022-02-04T00:34:56Z")

</div>

Operating system: windows Slicer version: 4.11 I am trying to build the SlicerCAT as explained in https://blog.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/ by following the exact instructions …

---

## [Trouble building ITK python wrapping](https://discourse.slicer.org/t/trouble-building-itk-python-wrapping/21729)

<div class="topic-metadata">

**Author:** [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Replies:** 8\
**Last updated:** [February 3, 2022, 11:44pm UTC](https://discourse.slicer.org/t/trouble-building-itk-python-wrapping/21729 "2022-02-03T23:44:41Z")

</div>

I want to include ITK python wrapping in my Slicer build, but building fails when I turn on Slicer\_BUILD\_ITKPython, with the following error in the make output ... -- ITKPyUtils: Creating itkPyCommand submodule. -- ITKP…

---

## [import slicer doesn't work in python script](https://discourse.slicer.org/t/import-slicer-doesnt-work-in-python-script/21393)

<div class="topic-metadata">

**Author:** [@MJJ](https://discourse.slicer.org/u/MJJ)\
**Replies:** 2\
**Last updated:** [February 3, 2022, 10:24pm UTC](https://discourse.slicer.org/t/import-slicer-doesnt-work-in-python-script/21393 "2022-02-03T22:24:58Z")

</div>

I want to automate generating a scene using python. I’ve created a .py file. But when I run: import slicer I get the following error: ModuleNotFoundError: No module named 'slicer' If i load the slicer application i…

---

## [Qt switch button in Slicer](https://discourse.slicer.org/t/qt-switch-button-in-slicer/21746)

<div class="topic-metadata">

**Author:** [@chz31](https://discourse.slicer.org/u/chz31)\
**Replies:** 9\
**Last updated:** [February 3, 2022, 6:18pm UTC](https://discourse.slicer.org/t/qt-switch-button-in-slicer/21746 "2022-02-03T18:18:08Z")

</div>

Hi all, I am thinking about using the qt switch button in Slicer as shown here Switch QML Type | Qt Quick Controls 5.15.8. However, I could not find it in Slicer. Does Slicer incorporate the qt switch button function as…

---

## [Process module logic's event within displayable node](https://discourse.slicer.org/t/process-module-logics-event-within-displayable-node/21742)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 2\
**Last updated:** [February 3, 2022, 6:04pm UTC](https://discourse.slicer.org/t/process-module-logics-event-within-displayable-node/21742 "2022-02-03T18:04:02Z")

</div>

Hi, I have a module that invokes custom event MyEvent. I’m looking for a way to catch this event within displayable node. I can see an option here: I can invoke the event from the module’s logic but set scene as a ca…

---

## [Maintenance of download.slicer.org, slicer.kitware.com and slicer-packages.kitware.com planned for February 3rd 2022 - 10:30am to 12:30pm ET](https://discourse.slicer.org/t/maintenance-of-download-slicer-org-slicer-kitware-com-and-slicer-packages-kitware-com-planned-for-february-3rd-2022-10-30am-to-12-30pm-et/21522)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 3\
**Last updated:** [February 3, 2022, 5:35pm UTC](https://discourse.slicer.org/t/maintenance-of-download-slicer-org-slicer-kitware-com-and-slicer-packages-kitware-com-planned-for-february-3rd-2022-10-30am-to-12-30pm-et/21522 "2022-02-03T17:35:09Z")

</div>

The following system will be temporarily unavailable while system updates are deployed on the corresponding virtual machines. implementing REST API service (built on Girder) for managing Slicer application and extension…

---

## [Addressing issue with "pip install itk"](https://discourse.slicer.org/t/addressing-issue-with-pip-install-itk/21763)

<div class="topic-metadata">

**Author:** [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Replies:** 2\
**Last updated:** [February 3, 2022, 4:54pm UTC](https://discourse.slicer.org/t/addressing-issue-with-pip-install-itk/21763 "2022-02-03T16:54:40Z")

</div>

I was also playing with pip installing itk, but this doesn’t seem to work at the moment. @jcfr was looking into this. It may have to do with the pip-installed ITK and the compiled ITK libraries working with the same sha…

---

## [cranioplasty use the selfdata preoperative and postoperative](https://discourse.slicer.org/t/cranioplasty-use-the-selfdata-preoperative-and-postoperative/21770)

<div class="topic-metadata">

**Author:** [@mao991918](https://discourse.slicer.org/u/mao991918)\
**Replies:** 0\
**Last updated:** [February 3, 2022, 5:54am UTC](https://discourse.slicer.org/t/cranioplasty-use-the-selfdata-preoperative-and-postoperative/21770 "2022-02-03T05:54:45Z")

</div>

Whether the skull data of the same patient can be used for the cranioplasty model . In the progress of the practice, the progess of the registration is failed. we can’t finished the registration of the skull data pr…

---

## [Inserting an image under the interactive plot](https://discourse.slicer.org/t/inserting-an-image-under-the-interactive-plot/21737)

<div class="topic-metadata">

**Author:** [@armandanesh](https://discourse.slicer.org/u/armandanesh)\
**Replies:** 5\
**Last updated:** [February 2, 2022, 9:31pm UTC](https://discourse.slicer.org/t/inserting-an-image-under-the-interactive-plot/21737 "2022-02-02T21:31:59Z")

</div>

Hello, I was wondering if there would be a way in order to get the interactive plot to work over an image. For example, to have a cartesian grid overlay a particular image such that we can plot points on particular posi…

---

## [Around cursor transforms (Blender-like) on Slicer](https://discourse.slicer.org/t/around-cursor-transforms-blender-like-on-slicer/21748)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 9\
**Last updated:** [February 2, 2022, 1:49pm UTC](https://discourse.slicer.org/t/around-cursor-transforms-blender-like-on-slicer/21748 "2022-02-02T13:49:03Z")

</div>

Hi. I created a script that lets you transform a rigid object very easily inside slicer. Here is a demo video (hip to mandible manual registration, useful to plan an ileac crest mandible reconstruction): https://drive.…

---

## [How to change slider position from top side to Right side](https://discourse.slicer.org/t/how-to-change-slider-position-from-top-side-to-right-side/21671)

<div class="topic-metadata">

**Author:** [@Dwij\_Mistry](https://discourse.slicer.org/u/Dwij_Mistry)\
**Replies:** 10\
**Last updated:** [January 29, 2022, 5:46pm UTC](https://discourse.slicer.org/t/how-to-change-slider-position-from-top-side-to-right-side/21671 "2022-01-29T17:46:06Z")

</div>

Hi, I am trying to change the slice view controller’s slider position from top side to right side of the slice view. as I can understand, this slice controller is coming from CTK. Is there any way to make slice con…

---

## [Suggestion for an R interactor](https://discourse.slicer.org/t/suggestion-for-an-r-interactor/21572)

<div class="topic-metadata">

**Author:** [@stevenagl12](https://discourse.slicer.org/u/stevenagl12)\
**Replies:** 8\
**Last updated:** [January 29, 2022, 9:48am UTC](https://discourse.slicer.org/t/suggestion-for-an-r-interactor/21572 "2022-01-29T09:48:10Z")

</div>

So, I was wondering if it’s possible for us to get an R interactor in addition to the Python Interactor. My reasoning is that, it would be nice to be able to utilize packages such as RvtkStatismo, geomorph, and shiny, et…

---

## [VR DS issue with window center/width attributes in Slicer export](https://discourse.slicer.org/t/vr-ds-issue-with-window-center-width-attributes-in-slicer-export/21687)

<div class="topic-metadata">

**Author:** [@issakomi](https://discourse.slicer.org/u/issakomi)\
**Replies:** 0\
**Last updated:** [January 29, 2022, 8:48am UTC](https://discourse.slicer.org/t/vr-ds-issue-with-window-center-width-attributes-in-slicer-export/21687 "2022-01-29T08:48:45Z")

</div>

S. this post, comment at the end.

---

## [Python message: "Failed to import PythonQt.qSlicerxxxxModuleWidgets"](https://discourse.slicer.org/t/python-message-failed-to-import-pythonqt-qslicerxxxxmodulewidgets/21575)

<div class="topic-metadata">

**Author:** [@AndreaVitali86](https://discourse.slicer.org/u/AndreaVitali86)\
**Replies:** 9\
**Last updated:** [January 28, 2022, 9:28pm UTC](https://discourse.slicer.org/t/python-message-failed-to-import-pythonqt-qslicerxxxxmodulewidgets/21575 "2022-01-28T21:28:05Z")

</div>

Dear All, I’m Andrea Vitali from University of Bergamo (Italy) and our students faced a specific problem during the development of a C++ module based on the template “loadablecustommarkups”. In particular, we have prob…

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

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