# Development

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

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

**Page:** 81

---

## [Setting LUT/ window and level from C++ CLI module](https://discourse.slicer.org/t/setting-lut-window-and-level-from-c-cli-module/16102)

<div class="topic-metadata">

**Author:** [@cold-pac](https://discourse.slicer.org/u/cold-pac)\
**Replies:** 1\
**Last updated:** [February 20, 2021, 4:19am UTC](https://discourse.slicer.org/t/setting-lut-window-and-level-from-c-cli-module/16102 "2021-02-20T04:19:54Z")

</div>

Is there any way to set the colors and window/level for a MRML display node produced by a C++ CLI module? Can I access the MRML scene/vtkMRMLScalarVolumeDisplayNode? Should I do this by creating a Python CLI module tha…

---

## [Orthogonal and Oblique MPR Slicing and Fusion](https://discourse.slicer.org/t/orthogonal-and-oblique-mpr-slicing-and-fusion/14530)

<div class="topic-metadata">

**Author:** [@spycolyf](https://discourse.slicer.org/u/spycolyf)\
**Replies:** 76\
**Last updated:** [February 19, 2021, 9:38pm UTC](https://discourse.slicer.org/t/orthogonal-and-oblique-mpr-slicing-and-fusion/14530 "2021-02-19T21:38:58Z")

</div>

Hi, I’m Doug Porter from the Mayo Clinic. We have an application that we developed in-house called QREADS which runs in MS Windows and is used by our clinicians. We are looking to expand it’s capabilities from being a si…

---

## [Slicer classes API documentation in code editor](https://discourse.slicer.org/t/slicer-classes-api-documentation-in-code-editor/16100)

<div class="topic-metadata">

**Author:** [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Replies:** 1\
**Last updated:** [February 19, 2021, 8:11pm UTC](https://discourse.slicer.org/t/slicer-classes-api-documentation-in-code-editor/16100 "2021-02-19T20:11:20Z")

</div>

Hi, Is there context-sensitive help (something like IntelliSense) available for Slicer classes when editing Python or C++ code? Thank you Rudolf

---

## [Can't modify a table in "Tables" module after using "Landmark Registration" module](https://discourse.slicer.org/t/cant-modify-a-table-in-tables-module-after-using-landmark-registration-module/16069)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 8\
**Last updated:** [February 19, 2021, 7:56pm UTC](https://discourse.slicer.org/t/cant-modify-a-table-in-tables-module-after-using-landmark-registration-module/16069 "2021-02-19T19:56:23Z")

</div>

To reproduce: Use the “Landmark Registration” module to register any pair of RGB images (I used ThinPlate Registration type); Go to the “Tables” module, create a new table, and try to add columns or rows using the …

---

## [Edit UI file for segmentation editor effect](https://discourse.slicer.org/t/edit-ui-file-for-segmentation-editor-effect/16073)

<div class="topic-metadata">

**Author:** [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)\
**Replies:** 2\
**Last updated:** [February 19, 2021, 9:22am UTC](https://discourse.slicer.org/t/edit-ui-file-for-segmentation-editor-effect/16073 "2021-02-19T09:22:36Z")

</div>

Hi, I started using 3D Slicer a couple of days ago and I’m really excited for the things it can do. I created a scripted segment editor effect and I was wondering whether I can edit the ui using the same developer opti…

---

## [Updating the display while we in a for loop](https://discourse.slicer.org/t/updating-the-display-while-we-in-a-for-loop/16053)

<div class="topic-metadata">

**Author:** [@11141](https://discourse.slicer.org/u/11141)\
**Replies:** 2\
**Last updated:** [February 19, 2021, 6:32am UTC](https://discourse.slicer.org/t/updating-the-display-while-we-in-a-for-loop/16053 "2021-02-19T06:32:04Z")

</div>

Hi. I created an extension using the Extension Wizard, which allows to place fiducials on positions where the moving machine is tracked. for implementing this feature, I used the ‘for’ loop. when the loop is executing…

---

## [Endoscopy flythrough loop doesn't start from the same camera angle and changes every loop](https://discourse.slicer.org/t/endoscopy-flythrough-loop-doesnt-start-from-the-same-camera-angle-and-changes-every-loop/15961)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 11:34pm UTC](https://discourse.slicer.org/t/endoscopy-flythrough-loop-doesnt-start-from-the-same-camera-angle-and-changes-every-loop/15961 "2021-02-17T23:34:57Z")

</div>

Operating system: Windows 10 Slicer version: 4.11.20200930 I am using the endoscopy module and in it, the flythrough works fine but once one loop is over the camera angle(or up, down) changes and starts from a differen…

---

## [Why fontSize of vtkTextActor() not working as setup-values (via Python)?](https://discourse.slicer.org/t/why-fontsize-of-vtktextactor-not-working-as-setup-values-via-python/15901)

<div class="topic-metadata">

**Author:** [@aiden.zhu](https://discourse.slicer.org/u/aiden.zhu)\
**Replies:** 3\
**Last updated:** [February 17, 2021, 8:20pm UTC](https://discourse.slicer.org/t/why-fontsize-of-vtktextactor-not-working-as-setup-values-via-python/15901 "2021-02-17T20:20:35Z")

</div>

Operating system: Windows Slicer version: 4.11.0-2019-06-23 r28335 Expected behavior: font-size adjustment Actual behavior: X Hi All, I tried to use vtk.vtkTextActor() to set up a text-info in a window as in the fol…

---

## [Set identity transform on vtkOrientedGridTransform](https://discourse.slicer.org/t/set-identity-transform-on-vtkorientedgridtransform/16012)

<div class="topic-metadata">

**Author:** [@riep](https://discourse.slicer.org/u/riep)\
**Replies:** 4\
**Last updated:** [February 17, 2021, 7:45am UTC](https://discourse.slicer.org/t/set-identity-transform-on-vtkorientedgridtransform/16012 "2021-02-17T07:45:29Z")

</div>

Hi everyone, I would like to know if there was a direct API to reset a vtkOrientedGridTransform to identity. Is there any workaround to do it? If not I was planning to set zeros in the displacement fields manually. T…

---

## [Use scala script in 3d Slicer](https://discourse.slicer.org/t/use-scala-script-in-3d-slicer/15918)

<div class="topic-metadata">

**Author:** [@GuettoucheKenza](https://discourse.slicer.org/u/GuettoucheKenza)\
**Replies:** 1\
**Last updated:** [February 17, 2021, 4:20am UTC](https://discourse.slicer.org/t/use-scala-script-in-3d-slicer/15918 "2021-02-17T04:20:02Z")

</div>

Hello, I want to use scala scripts in 3d Slicer is there a possibility for that?

---

## [Understanding the behavior of volume node's SetAndObserveImageData method](https://discourse.slicer.org/t/understanding-the-behavior-of-volume-nodes-setandobserveimagedata-method/16015)

<div class="topic-metadata">

**Author:** [@marianaslicer](https://discourse.slicer.org/u/marianaslicer)\
**Replies:** 6\
**Last updated:** [February 16, 2021, 11:56pm UTC](https://discourse.slicer.org/t/understanding-the-behavior-of-volume-nodes-setandobserveimagedata-method/16015 "2021-02-16T23:56:24Z")

</div>

Hi everyone, Slicer: 4.13 My question might be stupid… I am not understanding the behavior of these lines of code: mathMultiply = vtk.vtkImageMathematics() mathMultiply.RemoveAllInputs() CT\_before.SetAndObserveImageD…

---

## [Blank pages in the SlicerPreview dashboard](https://discourse.slicer.org/t/blank-pages-in-the-slicerpreview-dashboard/16011)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 2\
**Last updated:** [February 16, 2021, 10:18pm UTC](https://discourse.slicer.org/t/blank-pages-in-the-slicerpreview-dashboard/16011 "2021-02-16T22:18:08Z")

</div>

I want to check the status of some extensions, but when I click any builds from this filtered page https://slicer.cdash.org/index.php?project=SlicerPreview&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1…

---

## [Get parent of segmentation Node](https://discourse.slicer.org/t/get-parent-of-segmentation-node/16010)

<div class="topic-metadata">

**Author:** [@LaurennLam](https://discourse.slicer.org/u/LaurennLam)\
**Replies:** 4\
**Last updated:** [February 16, 2021, 4:58pm UTC](https://discourse.slicer.org/t/get-parent-of-segmentation-node/16010 "2021-02-16T16:58:21Z")

</div>

Hi there, I’d like to k now how I can get the parent of a segmentation. I have a vtkMRMLScalarVolumeNode and created a Segmentation for this scalarVolume (With the user interface). But I’d like to know how I can get th…

---

## [4.11 help menu links not yet available](https://discourse.slicer.org/t/4-11-help-menu-links-not-yet-available/15934)

<div class="topic-metadata">

**Author:** [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Replies:** 2\
**Last updated:** [February 13, 2021, 8:58pm UTC](https://discourse.slicer.org/t/4-11-help-menu-links-not-yet-available/15934 "2021-02-13T20:58:28Z")

</div>

Hi guys, the Help menu links are pointing to empty pages such as https://www.slicer.org/w/index.php/Documentation/4.11 Can we copy the 4.10 pages and make the necessary changes? Thanks, Fernando.

---

## [Sequential Segment Editor Effects not applied in script](https://discourse.slicer.org/t/sequential-segment-editor-effects-not-applied-in-script/15968)

<div class="topic-metadata">

**Author:** [@Pete](https://discourse.slicer.org/u/Pete)\
**Replies:** 1\
**Last updated:** [February 12, 2021, 2:52pm UTC](https://discourse.slicer.org/t/sequential-segment-editor-effects-not-applied-in-script/15968 "2021-02-12T14:52:51Z")

</div>

Hi, I have written a script to apply thresholds to a segment and then to apply median smoothing. Both these actions work exactly as expected separately, but when chained together in the script only the first (thresholdi…

---

## [Accessing Vector to Scalar Volume module logic](https://discourse.slicer.org/t/accessing-vector-to-scalar-volume-module-logic/15221)

<div class="topic-metadata">

**Author:** [@giovform](https://discourse.slicer.org/u/giovform)\
**Replies:** 2\
**Last updated:** [February 12, 2021, 1:01pm UTC](https://discourse.slicer.org/t/accessing-vector-to-scalar-volume-module-logic/15221 "2021-02-12T13:01:16Z")

</div>

I wasn’t able to access this module logic. If I do: slicer.modules.vectortoscalarvolume.logic() I get: (SlicerBaseLogicPython.vtkSlicerScriptedLoadableModuleLogic)00000287A73FC0A8 Any thoghts on how to access the Vec…

---

## [ModuleNotFoundError: No module named 'vmtk'](https://discourse.slicer.org/t/modulenotfounderror-no-module-named-vmtk/15962)

<div class="topic-metadata">

**Author:** [@Carlos\_Alberto\_Bulan](https://discourse.slicer.org/u/Carlos_Alberto_Bulan)\
**Replies:** 0\
**Last updated:** [February 12, 2021, 1:46am UTC](https://discourse.slicer.org/t/modulenotfounderror-no-module-named-vmtk/15962 "2021-02-12T01:46:04Z")

</div>

Hello all, First of all, I would like to thank you for developing Slicer, I am a new user and it seems to be a powerful framework. I have a Python project, PP, for image processing relaying on VTK, SimpleITK & VMTK. I…

---

## [How to set default centerline curve width programmatically and how to have slice intersection displayed?](https://discourse.slicer.org/t/how-to-set-default-centerline-curve-width-programmatically-and-how-to-have-slice-intersection-displayed/15957)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 2\
**Last updated:** [February 11, 2021, 9:20pm UTC](https://discourse.slicer.org/t/how-to-set-default-centerline-curve-width-programmatically-and-how-to-have-slice-intersection-displayed/15957 "2021-02-11T21:20:30Z")

</div>

Operating system: Windows 10 Slicer version: 4.11.20200930 This is a 2 part question. First, I want to know how to programmatically set the default centerline curve width for the centerline curve obtained from the extr…

---

## [WrapSolidify surface](https://discourse.slicer.org/t/wrapsolidify-surface/15936)

<div class="topic-metadata">

**Author:** [@siaeleni](https://discourse.slicer.org/u/siaeleni)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 3:47pm UTC](https://discourse.slicer.org/t/wrapsolidify-surface/15936 "2021-02-10T15:47:10Z")

</div>

Hello, I use Wrap Solifidy feature in order to create the outer surface of a model, but I get some strange results like the photo attached. Do you have any idea why? Thanks!

---

## [Macro XML to python](https://discourse.slicer.org/t/macro-xml-to-python/15803)

<div class="topic-metadata">

**Author:** [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Replies:** 11\
**Last updated:** [February 5, 2021, 5:42pm UTC](https://discourse.slicer.org/t/macro-xml-to-python/15803 "2021-02-05T17:42:10Z")

</div>

Hi, I’m recording some macros and I want to know if there’s any way that I can convert the XLM code to python code for Slicer. Thanks

---

## [Load ultrasonic probe in MRML scene](https://discourse.slicer.org/t/load-ultrasonic-probe-in-mrml-scene/15894)

<div class="topic-metadata">

**Author:** [@Carl098](https://discourse.slicer.org/u/Carl098)\
**Replies:** 1\
**Last updated:** [February 8, 2021, 5:50am UTC](https://discourse.slicer.org/t/load-ultrasonic-probe-in-mrml-scene/15894 "2021-02-08T05:50:28Z")

</div>

I am referring to the PediclesCrewSimulator program and want to display an ultrasonic probe of STL data in the scene. I don’t know how to do this as a beginner, thank you.

---

## [Reformat module Values not resetting](https://discourse.slicer.org/t/reformat-module-values-not-resetting/15873)

<div class="topic-metadata">

**Author:** [@manjula](https://discourse.slicer.org/u/manjula)\
**Replies:** 1\
**Last updated:** [February 6, 2021, 5:22pm UTC](https://discourse.slicer.org/t/reformat-module-values-not-resetting/15873 "2021-02-06T17:22:56Z")

</div>

Hi, Why the values in reformat module do not reset by default? Even if I close the scene (Ctlr W) still the what ever the rotation values remain there in the next scene. Also when I change the rotation value in red sli…

---

## [Adding a field to JSON file from extension](https://discourse.slicer.org/t/adding-a-field-to-json-file-from-extension/15849)

<div class="topic-metadata">

**Author:** [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Replies:** 3\
**Last updated:** [February 5, 2021, 5:54pm UTC](https://discourse.slicer.org/t/adding-a-field-to-json-file-from-extension/15849 "2021-02-05T17:54:25Z")

</div>

I would like to implement a way to distinguish anatomical landmarks from constructed landmarks such as semi-landmarks generated by curve resampling or from the modules in our SlicerMorph extension. Some methods we use ou…

---

## [About changing mouse cursor](https://discourse.slicer.org/t/about-changing-mouse-cursor/15814)

<div class="topic-metadata">

**Author:** [@forfullstack](https://discourse.slicer.org/u/forfullstack)\
**Replies:** 5\
**Last updated:** [February 5, 2021, 9:52am UTC](https://discourse.slicer.org/t/about-changing-mouse-cursor/15814 "2021-02-05T09:52:26Z")

</div>

I want to change shape of mouse cursor when mouse crosses MPR lines I’ve added function in the vtkMRMLSliceIntersectionWidget.cxx to check crossing with MPR lines. But how can I change cursor in that time? I think I ha…

---

## [Adding Slicer to official VTK Continuous Integration aka "Contract Testing"](https://discourse.slicer.org/t/adding-slicer-to-official-vtk-continuous-integration-aka-contract-testing/15848)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 1\
**Last updated:** [February 5, 2021, 3:39am UTC](https://discourse.slicer.org/t/adding-slicer-to-official-vtk-continuous-integration-aka-contract-testing/15848 "2021-02-05T03:39:20Z")

</div>

To more effectively identify and address issues associated with the latest version of VTK that may impact Slicer, we are working with the VTK team to setup what we call “contract testing”. In a nutshell, Slicer will be…

---

## [Calls to CLI makes tests to fail](https://discourse.slicer.org/t/calls-to-cli-makes-tests-to-fail/13835)

<div class="topic-metadata">

**Author:** [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Replies:** 14\
**Last updated:** [February 4, 2021, 11:51am UTC](https://discourse.slicer.org/t/calls-to-cli-makes-tests-to-fail/13835 "2021-02-04T11:51:14Z")

</div>

In my module I have some calls to Slicer CLI scripts, like brainsresample. In my code I do parameters = {'inputVolume': nodeCT.data, 'referenceVolume': nodeSPECT.data, 'outputVolume': CTRSNode, 'interpolat…

---

## [Segmentation alignement](https://discourse.slicer.org/t/segmentation-alignement/15797)

<div class="topic-metadata">

**Author:** [@loubna](https://discourse.slicer.org/u/loubna)\
**Replies:** 3\
**Last updated:** [February 3, 2021, 4:26pm UTC](https://discourse.slicer.org/t/segmentation-alignement/15797 "2021-02-03T16:26:12Z")

</div>

Hi everyone, I have a segmentation and MRI sequence in nii format , and want to overlay/align them. What is the best way to go about this? Thanks in advance!

---

## [Crash with ctkRangeWidget](https://discourse.slicer.org/t/crash-with-ctkrangewidget/15299)

<div class="topic-metadata">

**Author:** [@xriobe](https://discourse.slicer.org/u/xriobe)\
**Replies:** 8\
**Last updated:** [February 1, 2021, 9:30pm UTC](https://discourse.slicer.org/t/crash-with-ctkrangewidget/15299 "2021-02-01T21:30:19Z")

</div>

Hi, I have an issue with a wrong behavior of ctkRangeWidget that ends with the crash of Slicer 4.11.20200930 in Debug build (Ubuntu 20). I think it is probably the same as this bug that has been closed without knowing …

---

## [Crash on Slicer Startup on Qt5 Linux Mint](https://discourse.slicer.org/t/crash-on-slicer-startup-on-qt5-linux-mint/15774)

<div class="topic-metadata">

**Author:** [@RobinMontferme](https://discourse.slicer.org/u/RobinMontferme)\
**Replies:** 3\
**Last updated:** [February 1, 2021, 3:04pm UTC](https://discourse.slicer.org/t/crash-on-slicer-startup-on-qt5-linux-mint/15774 "2021-02-01T15:04:59Z")

</div>

Hello, I have recently tried to build the latest version of Slicer4 (4.13.0-2021-01-30). I am using Linux Mint 20.1 (based on Ubuntu 20.04 Focal Fossa) I also opened a github issue related to said problem here. After…

---

## [2D image on one slice](https://discourse.slicer.org/t/2d-image-on-one-slice/15771)

<div class="topic-metadata">

**Author:** [@nikoskot](https://discourse.slicer.org/u/nikoskot)\
**Replies:** 1\
**Last updated:** [February 1, 2021, 2:55pm UTC](https://discourse.slicer.org/t/2d-image-on-one-slice/15771 "2021-02-01T14:55:23Z")

</div>

Hello, I would like to display a 2D image stored in a 3D numpy array (RGB image) only in one of the slices (for example the Red slice). img = np.zeros((50,50,3)) img\[10:40,20:30, 0\] = 200 # saturate a part of the firs…

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

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