# Development

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

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

**Page:** 95

---

## [Crop volume wrong result](https://discourse.slicer.org/t/crop-volume-wrong-result/11485)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 3\
**Last updated:** [May 11, 2020, 12:17am UTC](https://discourse.slicer.org/t/crop-volume-wrong-result/11485 "2020-05-11T00:17:30Z")

</div>

Hello, I am using the Crop Volume programmatically to crop with a ROI around a segmentation node (the segmentation node is used for a Mask). In some cases it works, and in others it results in a misalignment like this on…

---

## [How to create/update ts (qt translation) files?](https://discourse.slicer.org/t/how-to-create-update-ts-qt-translation-files/11440)

<div class="topic-metadata">

**Author:** [@quabug](https://discourse.slicer.org/u/quabug)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 8:29am UTC](https://discourse.slicer.org/t/how-to-create-update-ts-qt-translation-files/11440 "2020-05-07T08:29:07Z")

</div>

I am trying to enable i18n support on slicer, and it is generate “fr” translation files by default after enable Slicer\_BUILD\_I18N\_SUPPORT and Slicer\_UPDATE\_TRANSLATION. Then I changed “fr” to “zh” in CMakeList.txt and i…

---

## [How to deal with internal contours in SlicerRT](https://discourse.slicer.org/t/how-to-deal-with-internal-contours-in-slicerrt/11417)

<div class="topic-metadata">

**Author:** [@loubna](https://discourse.slicer.org/u/loubna)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 3:33pm UTC](https://discourse.slicer.org/t/how-to-deal-with-internal-contours-in-slicerrt/11417 "2020-05-05T15:33:37Z")

</div>

Hi; How can I remove the internal contours from planar contours in SlicerRT. I want keep only the extreme outer contours? Thank’s in advance

---

## [Cannot found attribute 'vtkMRMLSegmentEditorNode'](https://discourse.slicer.org/t/cannot-found-attribute-vtkmrmlsegmenteditornode/11355)

<div class="topic-metadata">

**Author:** [@quabug](https://discourse.slicer.org/u/quabug)\
**Replies:** 3\
**Last updated:** [May 5, 2020, 12:08pm UTC](https://discourse.slicer.org/t/cannot-found-attribute-vtkmrmlsegmenteditornode/11355 "2020-05-05T12:08:09Z")

</div>

I’ve compile and running the latest version “06e327” of slicer on Mac. But there’s always an error when I ‘Switch to module: “SegmentEditor”’, and no tool icons show’s up under panel of “Help & Acknowlegement”. Traceb…

---

## [Can I show a VTK scence in 3d view?](https://discourse.slicer.org/t/can-i-show-a-vtk-scence-in-3d-view/11390)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 3:19am UTC](https://discourse.slicer.org/t/can-i-show-a-vtk-scence-in-3d-view/11390 "2020-05-04T03:19:46Z")

</div>

I created a scence with some meshes(2 layer,such as 1st:cube,2nd:cylinder) and pictures by import vtk in slicer, I want to show it in 3D view of slicer. Can I do it with python. Thanks!

---

## [How to get a volume and a model object from in the scene management node?](https://discourse.slicer.org/t/how-to-get-a-volume-and-a-model-object-from-in-the-scene-management-node/11338)

<div class="topic-metadata">

**Author:** [@Shicong](https://discourse.slicer.org/u/Shicong)\
**Replies:** 1\
**Last updated:** [May 1, 2020, 3:52pm UTC](https://discourse.slicer.org/t/how-to-get-a-volume-and-a-model-object-from-in-the-scene-management-node/11338 "2020-05-01T15:52:28Z")

</div>

This is the case, I loaded a volume and exported a model object, if only one, how to get these two objects in the scene management node! how is implemented in python code?Thanks!

---

## [How to get volume and model in the scene in the python code？](https://discourse.slicer.org/t/how-to-get-volume-and-model-in-the-scene-in-the-python-code/11360)

<div class="topic-metadata">

**Author:** [@Shicong](https://discourse.slicer.org/u/Shicong)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 9:05pm UTC](https://discourse.slicer.org/t/how-to-get-volume-and-model-in-the-scene-in-the-python-code/11360 "2020-04-30T21:05:36Z")

</div>

I loaded a volume, in the scene and created a model. Below the data tree structure you can see the data shown in the figure. i want to get them in python code,The following: model = slicer.mrmlScene.GetNumberOfNodesByCl…

---

## [Automating thresholding of existing segments](https://discourse.slicer.org/t/automating-thresholding-of-existing-segments/11229)

<div class="topic-metadata">

**Author:** [@Justin](https://discourse.slicer.org/u/Justin)\
**Replies:** 5\
**Last updated:** [April 30, 2020, 8:02pm UTC](https://discourse.slicer.org/t/automating-thresholding-of-existing-segments/11229 "2020-04-30T20:02:43Z")

</div>

---

## [Visualize closed surface from planar contours](https://discourse.slicer.org/t/visualize-closed-surface-from-planar-contours/11363)

<div class="topic-metadata">

**Author:** [@loubna](https://discourse.slicer.org/u/loubna)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 4:08pm UTC](https://discourse.slicer.org/t/visualize-closed-surface-from-planar-contours/11363 "2020-04-30T16:08:04Z")

</div>

Hi; How can I visualize the 3D reconstructed surface from the planar contours in 3D slicer (for exemple in 3d Slicer, we can visualize the 3D surface reconstructed from the labelMap, by clicking on view 3D which execute…

---

## [Create a set of planar contours from IRM images](https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084)

<div class="topic-metadata">

**Author:** [@loubna](https://discourse.slicer.org/u/loubna)\
**Replies:** 4\
**Last updated:** [April 30, 2020, 10:49am UTC](https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084 "2020-04-30T10:49:17Z")

</div>

Hi every one; I have some ambiguities about segmentation of IRM images in Slicer 3D. I want to get a set of planar 2D contours. If i segment the ROI using segemnt editor (manually segmentation or semi-automatically). I …

---

## [Could not access function from qMRMLSortFilterProxyModel](https://discourse.slicer.org/t/could-not-access-function-from-qmrmlsortfilterproxymodel/11346)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 1\
**Last updated:** [April 29, 2020, 1:17pm UTC](https://discourse.slicer.org/t/could-not-access-function-from-qmrmlsortfilterproxymodel/11346 "2020-04-29T13:17:02Z")

</div>

Hi! I am not being able to access the function setHiddenNodeIDs from inside my Slicer. Using 4.11.0-2020-01-20 r28737.

---

## [How to get current volume and model selection using Python](https://discourse.slicer.org/t/how-to-get-current-volume-and-model-selection-using-python/11325)

<div class="topic-metadata">

**Author:** [@Shicong](https://discourse.slicer.org/u/Shicong)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 6:50am UTC](https://discourse.slicer.org/t/how-to-get-current-volume-and-model-selection-using-python/11325 "2020-04-29T06:50:21Z")

</div>

It’s the default not on the volumeclipwithmodel “, the display is “select a volume” , without the mouse select. I want to get the active volume object of the volumes module from the python code, and the current model obj…

---

## [Spine segmentation in cervico-thoracic region](https://discourse.slicer.org/t/spine-segmentation-in-cervico-thoracic-region/11234)

<div class="topic-metadata">

**Author:** [@Ricardoneuro](https://discourse.slicer.org/u/Ricardoneuro)\
**Replies:** 4\
**Last updated:** [April 28, 2020, 9:01pm UTC](https://discourse.slicer.org/t/spine-segmentation-in-cervico-thoracic-region/11234 "2020-04-28T21:01:24Z")

</div>

Hi community, It´s being very difficult to segment a spine in a dual quality aquisition dataset. This happens, for example, in the the cervical-thoracic transition of the spine. If someone else is in this issue please …

---

## [How can I create isodoses module from python](https://discourse.slicer.org/t/how-can-i-create-isodoses-module-from-python/11329)

<div class="topic-metadata">

**Author:** [@heshumeng](https://discourse.slicer.org/u/heshumeng)\
**Replies:** 0\
**Last updated:** [April 28, 2020, 1:46pm UTC](https://discourse.slicer.org/t/how-can-i-create-isodoses-module-from-python/11329 "2020-04-28T13:46:00Z")

</div>

slicer.modules.isodose.logic().CreateIsodoseSurfaces(vtkMRMLIsodoseNode) Traceback (most recent call last): File “”, line 1, in NameError: name ‘vtkMRMLIsodoseNode’ is not defined

---

## [Does SlicerRT do pixel level testing of RT Struct loading?](https://discourse.slicer.org/t/does-slicerrt-do-pixel-level-testing-of-rt-struct-loading/11319)

<div class="topic-metadata">

**Author:** [@pieper](https://discourse.slicer.org/u/pieper)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 1:17pm UTC](https://discourse.slicer.org/t/does-slicerrt-do-pixel-level-testing-of-rt-struct-loading/11319 "2020-04-28T13:17:40Z")

</div>

Hi - We are adding RT display support to OHIF and are planning testing strategy (just display of structs from tcia for now). We are hoping to emulate what SlicerRT does in this regard. The question came up as to wheth…

---

## [How to get current volume and segment in Python](https://discourse.slicer.org/t/how-to-get-current-volume-and-segment-in-python/11313)

<div class="topic-metadata">

**Author:** [@Shicong](https://discourse.slicer.org/u/Shicong)\
**Replies:** 3\
**Last updated:** [April 28, 2020, 4:17am UTC](https://discourse.slicer.org/t/how-to-get-current-volume-and-segment-in-python/11313 "2020-04-28T04:17:34Z")

</div>

When going to the volumeclipmodel module, as shown in the diagram, you have to manually mouse to select the volume and segment, how to automatically get these two objects in the python code, is there a code interface? th…

---

## [Renaming Scalar Bar to Color Bar](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274)

<div class="topic-metadata">

**Author:** [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Replies:** 5\
**Last updated:** [April 26, 2020, 1:12am UTC](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274 "2020-04-26T01:12:04Z")

</div>

Could we rename “ScalarBar” to something like “Color Bar” or “Color Scalar Bar” in the GUI? I know the underlying vtk object is called a vtkScalarBarActor with the description: A scalar bar is a legend that indicates t…

---

## [Wrong Volume after Clipping](https://discourse.slicer.org/t/wrong-volume-after-clipping/11279)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.slicer.org/u/siaeleni)\
**Replies:** 8\
**Last updated:** [April 24, 2020, 1:59pm UTC](https://discourse.slicer.org/t/wrong-volume-after-clipping/11279 "2020-04-24T13:59:20Z")

</div>

Hi all, I am trying to clip a model and I expect to have a smaller volume after clipping. I use vtkClipPolyData and vtkImplicitBoolean for clipping (my own way). Green is the initial input and the blue is the cropped …

---

## [Intersection between markups closed curve node on the plane and a line](https://discourse.slicer.org/t/intersection-between-markups-closed-curve-node-on-the-plane-and-a-line/11281)

<div class="topic-metadata">

**Author:** [@Mik](https://discourse.slicer.org/u/Mik)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 1:12pm UTC](https://discourse.slicer.org/t/intersection-between-markups-closed-curve-node-on-the-plane-and-a-line/11281 "2020-04-24T13:12:29Z")

</div>

Dear all, There is a vtkMRMLMarkupsCurveNode on a plane and a line on the same plane (e.g. x=10.0 mm). I want to find a intersection point (or points) between the curve and the line. It could be done manually (crude an…

---

## [Community document for Slicer 5 release highlights](https://discourse.slicer.org/t/community-document-for-slicer-5-release-highlights/11233)

<div class="topic-metadata">

**Author:** [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 3:23pm UTC](https://discourse.slicer.org/t/community-document-for-slicer-5-release-highlights/11233 "2020-04-22T15:23:46Z")

</div>

Hi all: During the most recent developer hangout (https://discourse.slicer.org/t/2020-04-21-hangout/11208), we discussed possible feature highlights for the Slicer 5 release notes. Usually, the release notes document i…

---

## [Importing and using class from .py into a custom scripted module](https://discourse.slicer.org/t/importing-and-using-class-from-py-into-a-custom-scripted-module/11221)

<div class="topic-metadata">

**Author:** [@laura.gelcano](https://discourse.slicer.org/u/laura.gelcano)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 10:56am UTC](https://discourse.slicer.org/t/importing-and-using-class-from-py-into-a-custom-scripted-module/11221 "2020-04-22T10:56:14Z")

</div>

Hello, I am using Slicer 4.11.0 on a Windows 10 computer and developing a Python scripted module. I want to import a class (TripleMRNet from TripleMRNet.py) from my scripted module, so that I can use it in the module. …

---

## [ctkDirectoryButton how to get path](https://discourse.slicer.org/t/ctkdirectorybutton-how-to-get-path/11236)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 4:07am UTC](https://discourse.slicer.org/t/ctkdirectorybutton-how-to-get-path/11236 "2020-04-22T04:07:50Z")

</div>

hi, Does anyone know how to get the path from ctkdirectorybutton. Thanks

---

## [Volume Cropping from Scripted Module](https://discourse.slicer.org/t/volume-cropping-from-scripted-module/11169)

<div class="topic-metadata">

**Author:** [@rohan\_n](https://discourse.slicer.org/u/rohan_n)\
**Replies:** 6\
**Last updated:** [April 21, 2020, 10:20pm UTC](https://discourse.slicer.org/t/volume-cropping-from-scripted-module/11169 "2020-04-21T22:20:49Z")

</div>

Hello, I am using Slicer 4.11.0 on a Windows 10 computer and developing a Python scripted module. I want to call a function from my scripted module that will allow the user to select a 3D region of interest, then once …

---

## [Python scripted module development reload feature for multiple files](https://discourse.slicer.org/t/python-scripted-module-development-reload-feature-for-multiple-files/6363)

<div class="topic-metadata">

**Author:** [@michalikthomas](https://discourse.slicer.org/u/michalikthomas)\
**Replies:** 12\
**Last updated:** [April 21, 2020, 4:55pm UTC](https://discourse.slicer.org/t/python-scripted-module-development-reload-feature-for-multiple-files/6363 "2020-04-21T16:55:34Z")

</div>

Is there a way how to customize/override default development feature - “Reload” - behavior, during scripted module development? I separated code into multiple files but “Reload” seems to reload just the root python file,…

---

## [Volume calculation](https://discourse.slicer.org/t/volume-calculation/11195)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.slicer.org/u/siaeleni)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 1:26am UTC](https://discourse.slicer.org/t/volume-calculation/11195 "2020-04-21T01:26:15Z")

</div>

Hi all, Here you can see that I have uploaded two different models and I want to calculate the Volumes. I am expecting that the green to have a larger volume, but I get significantly larger; green = 1147349mm^3 blue …

---

## [Non-uniform sampling](https://discourse.slicer.org/t/non-uniform-sampling/11187)

<div class="topic-metadata">

**Author:** [@loubna](https://discourse.slicer.org/u/loubna)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 5:39pm UTC](https://discourse.slicer.org/t/non-uniform-sampling/11187 "2020-04-19T17:39:11Z")

</div>

Due to the quality of scanning devices, it is possible that imaging resolution in the xyplane is higher than slicing capabilities. For example, regardless of units or precision used, imaging resolution is only accurate t…

---

## [GUI widget to select a file](https://discourse.slicer.org/t/gui-widget-to-select-a-file/9432)

<div class="topic-metadata">

**Author:** [@Rebecca\_Kincaid](https://discourse.slicer.org/u/Rebecca_Kincaid)\
**Replies:** 7\
**Last updated:** [April 16, 2020, 6:36am UTC](https://discourse.slicer.org/t/gui-widget-to-select-a-file/9432 "2020-04-16T06:36:31Z")

</div>

I am creating a module where I need to import an H5 file, process it and then display it to the output node. How do I get the option to view a dialogue box so that I can select a file? I found an example in the SlicerIT…

---

## [How to get the relevant information after dicom loading is completed?](https://discourse.slicer.org/t/how-to-get-the-relevant-information-after-dicom-loading-is-completed/11125)

<div class="topic-metadata">

**Author:** [@Shicong](https://discourse.slicer.org/u/Shicong)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 1:52am UTC](https://discourse.slicer.org/t/how-to-get-the-relevant-information-after-dicom-loading-is-completed/11125 "2020-04-16T01:52:44Z")

</div>

How to get the relevant information in the code, such as serial number, sex, name, admission time, etc., when loading the dicom number. Is there an interface in the code? Such as the sequence in the picture ：

---

## [Can I display 2 volume（R,G,Y slice） in 3d view not slice windows?](https://discourse.slicer.org/t/can-i-display-2-volume-r-g-y-slice-in-3d-view-not-slice-windows/11099)

<div class="topic-metadata">

**Author:** [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Replies:** 2\
**Last updated:** [April 14, 2020, 10:21am UTC](https://discourse.slicer.org/t/can-i-display-2-volume-r-g-y-slice-in-3d-view-not-slice-windows/11099 "2020-04-14T10:21:28Z")

</div>

Can I display 2 or more volumes（Red,Green,Yellow slice） in 3d view not slice windows?

---

## [Bug in Transforms module](https://discourse.slicer.org/t/bug-in-transforms-module/11091)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 3\
**Last updated:** [April 13, 2020, 2:17am UTC](https://discourse.slicer.org/t/bug-in-transforms-module/11091 "2020-04-13T02:17:28Z")

</div>

When changing (on this order) translation, rotation, and translation again, for a volume, the rotation slider is reset to 0, but the rotation is still in effect (the rotation matrix is not reset). Steps: Load a volume…

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

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