# Development

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

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

**Page:** 61

---

## [How to get the current ROINode programmingly according to the volume in the volume rendering module?](https://discourse.slicer.org/t/how-to-get-the-current-roinode-programmingly-according-to-the-volume-in-the-volume-rendering-module/21540)

<div class="topic-metadata">

**Author:** [@user4](https://discourse.slicer.org/u/user4)\
**Replies:** 5\
**Last updated:** [January 28, 2022, 4:27pm UTC](https://discourse.slicer.org/t/how-to-get-the-current-roinode-programmingly-according-to-the-volume-in-the-volume-rendering-module/21540 "2022-01-28T16:27:49Z")

</div>

Hi,all. There are three volumes in the volume rendering module and there are three corresponding AnnotationROIs,as follows： yeah,I want to get the current ROINode,for example right now,I choose the first volume …

---

## [Transition of nightly build from Python 3.6.7 to 3.9.10](https://discourse.slicer.org/t/transition-of-nightly-build-from-python-3-6-7-to-3-9-10/21660)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 1\
**Last updated:** [January 27, 2022, 8:05pm UTC](https://discourse.slicer.org/t/transition-of-nightly-build-from-python-3-6-7-to-3-9-10/21660 "2022-01-27T20:05:55Z")

</div>

Few days ago, the version of CPython integrated in Slicer has been updated from 3.6.7 to 3.9.10 (see Slicer@34e48e8ae). As of 2022.01.27, 10:39am ET, I expect all identified issues to be resolved …

---

## [Restore visual properties of models when registered as Sample Data](https://discourse.slicer.org/t/restore-visual-properties-of-models-when-registered-as-sample-data/21654)

<div class="topic-metadata">

**Author:** [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Replies:** 4\
**Last updated:** [January 27, 2022, 2:56pm UTC](https://discourse.slicer.org/t/restore-visual-properties-of-models-when-registered-as-sample-data/21654 "2022-01-27T14:56:18Z")

</div>

I’m using SampleData to register sample data to be used in Slicer-Liver. Part of that data is 3D models, which don’t preserve the visual properties when saved as .vtk models. Is there anyway to set up the visual properti…

---

## [Publishing a new extension (SlicerMRUSLandmarking)](https://discourse.slicer.org/t/publishing-a-new-extension-slicermruslandmarking/21622)

<div class="topic-metadata">

**Author:** [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)\
**Replies:** 1\
**Last updated:** [January 27, 2022, 5:54am UTC](https://discourse.slicer.org/t/publishing-a-new-extension-slicermruslandmarking/21622 "2022-01-27T05:54:32Z")

</div>

I created a new extension and created a pull request to the ExtensionsIndex. I completed the TODO list and I think it is ready to be merged. I’d appreciate it if someone with write access could look at it and let me kno…

---

## [Using Slicer python and packages via command line](https://discourse.slicer.org/t/using-slicer-python-and-packages-via-command-line/21496)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 4:43am UTC](https://discourse.slicer.org/t/using-slicer-python-and-packages-via-command-line/21496 "2022-01-27T04:43:23Z")

</div>

Hi everyone. I am currently using Slicer version 4.11.20210226 on ubuntu 20.04. I have certain extensions installed such as SlicerVMTK, etc. When I use the python interactor inside Slicer application, I am able to imp…

---

## [Select only file extensions with ctkPathLineEdit](https://discourse.slicer.org/t/select-only-file-extensions-with-ctkpathlineedit/21642)

<div class="topic-metadata">

**Author:** [@kleingeo](https://discourse.slicer.org/u/kleingeo)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 3:25am UTC](https://discourse.slicer.org/t/select-only-file-extensions-with-ctkpathlineedit/21642 "2022-01-27T03:25:56Z")

</div>

I’m writing a module where I need to load a csv file. I am currently using ctkPathLineEdit to open a file selection dialog box. Is there a way to modify ctkPathLineEdit to only accept files with specific file extensions? …

---

## [Add "Center all cameras" to control point right-click menu?](https://discourse.slicer.org/t/add-center-all-cameras-to-control-point-right-click-menu/21635)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 3\
**Last updated:** [January 26, 2022, 9:38pm UTC](https://discourse.slicer.org/t/add-center-all-cameras-to-control-point-right-click-menu/21635 "2022-01-26T21:38:27Z")

</div>

Some of my scans have rather ungainly specimens with elongate structures and lots of intricate morphology (stick insects, mantises). The center of rotation for the entire scene is often not exactly where I would like it …

---

## [How do I get the number and status of undo](https://discourse.slicer.org/t/how-do-i-get-the-number-and-status-of-undo/21634)

<div class="topic-metadata">

**Author:** [@wang](https://discourse.slicer.org/u/wang)\
**Replies:** 0\
**Last updated:** [January 26, 2022, 2:04pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-number-and-status-of-undo/21634 "2022-01-26T14:04:52Z")

</div>

How do I get the number and status of undo or redo when I use paint to edit segmentation

---

## [Dicom import failed, what's wrong?](https://discourse.slicer.org/t/dicom-import-failed-whats-wrong/21630)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 4\
**Last updated:** [January 26, 2022, 12:42pm UTC](https://discourse.slicer.org/t/dicom-import-failed-whats-wrong/21630 "2022-01-26T12:42:19Z")

</div>

Dicom import failed, what’s wrong?

---

## [Translation of "volume" term to other languages](https://discourse.slicer.org/t/translation-of-volume-term-to-other-languages/21608)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 17\
**Last updated:** [January 25, 2022, 11:56pm UTC](https://discourse.slicer.org/t/translation-of-volume-term-to-other-languages/21608 "2022-01-25T23:56:12Z")

</div>

Moving a discussion that we started on crowdin to this forum for better visibility and to include more people. Opened Jan 22, 2022 Andras Lasso 2 days ago We have found it difficult to translate “volume” (to Hungar…

---

## [Finding & creating modules from python scripts and/or frameworks](https://discourse.slicer.org/t/finding-creating-modules-from-python-scripts-and-or-frameworks/13203)

<div class="topic-metadata">

**Author:** [@epearlstone](https://discourse.slicer.org/u/epearlstone)\
**Replies:** 3\
**Last updated:** [January 25, 2022, 10:04pm UTC](https://discourse.slicer.org/t/finding-creating-modules-from-python-scripts-and-or-frameworks/13203 "2022-01-25T22:04:50Z")

</div>

I am looking to find python code to create modules. For example I know there is a post describing how to use an AI-assisted brain tumor segmentation but I would like to know where to find other open-source scripts/code t…

---

## [Translation of "scene" and "node" to different languages](https://discourse.slicer.org/t/translation-of-scene-and-node-to-different-languages/21607)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 6\
**Last updated:** [January 25, 2022, 2:04pm UTC](https://discourse.slicer.org/t/translation-of-scene-and-node-to-different-languages/21607 "2022-01-25T14:04:51Z")

</div>

Moving a discussion that we started on crowdin to this forum for better visibility and to include more people. Andras Lasso 2 days ago We have found it difficult to translate “scene” and “node” to Hungarian. The pro…

---

## [Pycharm and 3d slicer](https://discourse.slicer.org/t/pycharm-and-3d-slicer/21613)

<div class="topic-metadata">

**Author:** [@zhiyuan](https://discourse.slicer.org/u/zhiyuan)\
**Replies:** 1\
**Last updated:** [January 25, 2022, 6:27am UTC](https://discourse.slicer.org/t/pycharm-and-3d-slicer/21613 "2022-01-25T06:27:00Z")

</div>

I would like to ask, can I add the measurement length and angle of 3dslicer and the function of cutting the segmented 3D view to my own Python program. Is to run their own Python program, and then display the divided 3D …

---

## [Slicer Linux application and extension packages upload will be restored Jan 24th 2022](https://discourse.slicer.org/t/slicer-linux-application-and-extension-packages-upload-will-be-restored-jan-24th-2022/21589)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 2\
**Last updated:** [January 25, 2022, 3:25am UTC](https://discourse.slicer.org/t/slicer-linux-application-and-extension-packages-upload-will-be-restored-jan-24th-2022/21589 "2022-01-25T03:25:22Z")

</div>

To summarize, preview Linux build for Slicer application and associated extensions will not be available until we address this (\*) In the meantime, thanks for your patience :pray: (\*) Note that we will also add regress…

---

## [Specifying dependencies of a custom extension in the .s4ext file](https://discourse.slicer.org/t/specifying-dependencies-of-a-custom-extension-in-the-s4ext-file/21582)

<div class="topic-metadata">

**Author:** [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)\
**Replies:** 1\
**Last updated:** [January 23, 2022, 5:14pm UTC](https://discourse.slicer.org/t/specifying-dependencies-of-a-custom-extension-in-the-s4ext-file/21582 "2022-01-23T17:14:16Z")

</div>

I’m making a custom extension that contains the SimpleMarkupsWidget. Does this mean that my extension depends on the Markups module and I have to specify this as a dependency in the .s4ext file in my pull request?

---

## [Implement variable radius curve](https://discourse.slicer.org/t/implement-variable-radius-curve/21334)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 5\
**Last updated:** [January 22, 2022, 7:19pm UTC](https://discourse.slicer.org/t/implement-variable-radius-curve/21334 "2022-01-22T19:19:19Z")

</div>

Hi, In SlicerCAT I’m implementing a module to work with curves and scalar values that may be displayed as a radius of the curve or as its color. Thus I need vtkTubeFilter. There should be an opportunity to interactivel…

---

## [How do I use Python code to display 3D？](https://discourse.slicer.org/t/how-do-i-use-python-code-to-display-3d/21401)

<div class="topic-metadata">

**Author:** [@pleuvoir](https://discourse.slicer.org/u/pleuvoir)\
**Replies:** 7\
**Last updated:** [January 21, 2022, 1:44am UTC](https://discourse.slicer.org/t/how-do-i-use-python-code-to-display-3d/21401 "2022-01-21T01:44:13Z")

</div>

Software version: 4.11.20210226 R29738/7A593C8 Problem description: from the official web page, find the following code: segmentation. CreateClosedSurfaceRepresentation () 。 I tried to realize the “Create\_” function o…

---

## [Pausing program in Pycharm when connected to Slicer](https://discourse.slicer.org/t/pausing-program-in-pycharm-when-connected-to-slicer/21536)

<div class="topic-metadata">

**Author:** [@Juicy](https://discourse.slicer.org/u/Juicy)\
**Replies:** 0\
**Last updated:** [January 20, 2022, 1:21am UTC](https://discourse.slicer.org/t/pausing-program-in-pycharm-when-connected-to-slicer/21536 "2022-01-20T01:21:46Z")

</div>

Hi all, I have been trying to follow the instructions here for connecting Pycharm to slicer. I am trying to find a better way to debug code than copy and pasting lines into the python interactior. First I open one of m…

---

## [Include built-in widget into my own Python extension](https://discourse.slicer.org/t/include-built-in-widget-into-my-own-python-extension/21458)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.slicer.org/u/CsatiZoltan)\
**Replies:** 5\
**Last updated:** [January 19, 2022, 2:54am UTC](https://discourse.slicer.org/t/include-built-in-widget-into-my-own-python-extension/21458 "2022-01-19T02:54:06Z")

</div>

Hi, I want to develop a simple extension in Python. One step involves placing points on the 3D scene. I realized that the fiducial markup is perfect for my use case, so I want to add that icon, along with the logic it i…

---

## [GitHub action to check build status](https://discourse.slicer.org/t/github-action-to-check-build-status/21512)

<div class="topic-metadata">

**Author:** [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Replies:** 1\
**Last updated:** [January 18, 2022, 4:31pm UTC](https://discourse.slicer.org/t/github-action-to-check-build-status/21512 "2022-01-18T16:31:53Z")

</div>

Hi all, I would like to have in my Slicer extensions repos a badge showing the build status and a GitHub Action that checks every day whether there are build errors on CDash. Before I start working on it, has everyone …

---

## [Package executables with extension](https://discourse.slicer.org/t/package-executables-with-extension/21415)

<div class="topic-metadata">

**Author:** [@brandus1](https://discourse.slicer.org/u/brandus1)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 11:44am UTC](https://discourse.slicer.org/t/package-executables-with-extension/21415 "2022-01-17T11:44:37Z")

</div>

Hello, I am building an extension and I need to package with it a couple of executables which I want to call as subprocesses from a scripted python module. This seems the quickest solution for me, avoiding complex buil…

---

## [Disable Histogram Brush in Segment Editor Threshold effect](https://discourse.slicer.org/t/disable-histogram-brush-in-segment-editor-threshold-effect/17501)

<div class="topic-metadata">

**Author:** [@pll\_llq](https://discourse.slicer.org/u/pll_llq)\
**Replies:** 8\
**Last updated:** [January 14, 2022, 1:06pm UTC](https://discourse.slicer.org/t/disable-histogram-brush-in-segment-editor-threshold-effect/17501 "2022-01-14T13:06:16Z")

</div>

Hi :wave: I’m using the segment editor threshold effect in a custom UI to segment a CT. The effect conveniently handles all the nodes that are required for visualization and gives me python access to processing function…

---

## [How to find the source code of the interface design of 3d-slicer ？](https://discourse.slicer.org/t/how-to-find-the-source-code-of-the-interface-design-of-3d-slicer/21444)

<div class="topic-metadata">

**Author:** [@coderskys](https://discourse.slicer.org/u/coderskys)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 1:58pm UTC](https://discourse.slicer.org/t/how-to-find-the-source-code-of-the-interface-design-of-3d-slicer/21444 "2022-01-13T13:58:02Z")

</div>

I’m a beginner. I want to design a software interface similar to 3d-slicer ，and I have download 3d-slicer. But there are too many files that i can’t find the target file where i can read the code directly. I need help wh…

---

## [How to quickly start developing GUI, functions have been implemented](https://discourse.slicer.org/t/how-to-quickly-start-developing-gui-functions-have-been-implemented/21433)

<div class="topic-metadata">

**Author:** [@user4](https://discourse.slicer.org/u/user4)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 7:32am UTC](https://discourse.slicer.org/t/how-to-quickly-start-developing-gui-functions-have-been-implemented/21433 "2022-01-13T07:32:31Z")

</div>

Hi,all.I have been implementing some funtions with jupyternote book which manages Slicer Application as a kernal.For me,I am able to do some things with python code.However I have never touched the GUI part,I can define …

---

## [Load new volume (slicer.util.loadLabelVolume) without reset slicer layout](https://discourse.slicer.org/t/load-new-volume-slicer-util-loadlabelvolume-without-reset-slicer-layout/21416)

<div class="topic-metadata">

**Author:** [@CSConstantino](https://discourse.slicer.org/u/CSConstantino)\
**Replies:** 1\
**Last updated:** [January 12, 2022, 9:20am UTC](https://discourse.slicer.org/t/load-new-volume-slicer-util-loadlabelvolume-without-reset-slicer-layout/21416 "2022-01-12T09:20:35Z")

</div>

Operating system: Windows 10 Slicer version: 4.11 When I load a new volume using “slicer.util.loadLabelVolume”, the slicer always resets the layout. But I would like to keep the previous one. Can you help me? Thank yo…

---

## [Windows registry](https://discourse.slicer.org/t/windows-registry/21374)

<div class="topic-metadata">

**Author:** [@talmazov](https://discourse.slicer.org/u/talmazov)\
**Replies:** 0\
**Last updated:** [January 10, 2022, 3:28am UTC](https://discourse.slicer.org/t/windows-registry/21374 "2022-01-10T03:28:47Z")

</div>

Hey all, I’m looking at writing a script that automates some slicer functionality. To make it easier for deployment I’m looking at ways to find where a current version of slicer is installed on windows. Naturally I’m l…

---

## [How to display a volume in a specific slice view with Python](https://discourse.slicer.org/t/how-to-display-a-volume-in-a-specific-slice-view-with-python/21361)

<div class="topic-metadata">

**Author:** [@lauralatorre](https://discourse.slicer.org/u/lauralatorre)\
**Replies:** 2\
**Last updated:** [January 9, 2022, 12:20pm UTC](https://discourse.slicer.org/t/how-to-display-a-volume-in-a-specific-slice-view-with-python/21361 "2022-01-09T12:20:50Z")

</div>

Hi, I am trying to display 3 different volumes in a Three by three slice layout after pressing an Apply button in my module. I was wondering how can I set the slice views where to display each volume (for instance, I wa…

---

## [Print dataprobe text with shift key](https://discourse.slicer.org/t/print-dataprobe-text-with-shift-key/21331)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 8\
**Last updated:** [January 5, 2022, 2:27pm UTC](https://discourse.slicer.org/t/print-dataprobe-text-with-shift-key/21331 "2022-01-05T14:27:26Z")

</div>

I would like to print the background scalarVolume value where the crosshair is when it is repositioned with Shift key. Here is my code, it doesn’t work: def probeBackgroundVolumeOverMouse(): infoWidget = slicer.mod…

---

## [How to add a border to 3d widget](https://discourse.slicer.org/t/how-to-add-a-border-to-3d-widget/19221)

<div class="topic-metadata">

**Author:** [@wycstar](https://discourse.slicer.org/u/wycstar)\
**Replies:** 5\
**Last updated:** [January 5, 2022, 12:57am UTC](https://discourse.slicer.org/t/how-to-add-a-border-to-3d-widget/19221 "2022-01-05T00:57:58Z")

</div>

I want to add a border to 3d widget, but run the code below, nothing happened slicer.app.layoutManager().threeDWidget(0).threeDView().setStyleSheet("border-bottom: 2px solid rgb(255, 0, 0)") where am i wrong

---

## [Mouse over of control points very slow if control point list visible (segment with 20M+ polys)](https://discourse.slicer.org/t/mouse-over-of-control-points-very-slow-if-control-point-list-visible-segment-with-20m-polys/21261)

<div class="topic-metadata">

**Author:** [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Replies:** 5\
**Last updated:** [January 4, 2022, 6:55pm UTC](https://discourse.slicer.org/t/mouse-over-of-control-points-very-slow-if-control-point-list-visible-segment-with-20m-polys/21261 "2022-01-04T18:55:24Z")

</div>

MacOS 12.1, Slicer 12-19 nightly, MacBook Pro 16", 64MB ram, AMD Radeon Pro 5500M 8 GB. I have a complex model/segmentation, well over 20 million polygons, and a markup list with about 200 control points. Just points, n…

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

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