# Development

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

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

**Page:** 21

---

## [Add vtkVectorText programmatically](https://discourse.slicer.org/t/add-vtkvectortext-programmatically/33977)

<div class="topic-metadata">

**Author:** [@Jeff\_Zeyl](https://discourse.slicer.org/u/Jeff_Zeyl)\
**Replies:** 4\
**Last updated:** [May 8, 2024, 7:48pm UTC](https://discourse.slicer.org/t/add-vtkvectortext-programmatically/33977 "2024-05-08T19:48:30Z")

</div>

I would like to engrave many text models onto a skin model, programmatically, based on a set of markup control point coordinates. My current approach is to generate vtk.vtkVectorText models, set their location, and subt…

---

## [Load ScriptedModule using python scripts](https://discourse.slicer.org/t/load-scriptedmodule-using-python-scripts/35984)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 0\
**Last updated:** [May 8, 2024, 7:26am UTC](https://discourse.slicer.org/t/load-scriptedmodule-using-python-scripts/35984 "2024-05-08T07:26:34Z")

</div>

Hi all, For security reasons, we want to place our module on a web server and use web APIs to read it when Slicer is opened. This way, we can identify who called the module and execute it without downloading the source …

---

## [Strategies for Distributing Python Programs Securely](https://discourse.slicer.org/t/strategies-for-distributing-python-programs-securely/35807)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 4\
**Last updated:** [May 8, 2024, 7:28am UTC](https://discourse.slicer.org/t/strategies-for-distributing-python-programs-securely/35807 "2024-05-08T07:28:40Z")

</div>

Hello all, I’m looking to develop a commercial program using a slicer. However, I’ve discovered that when I package and distribute this custom program, the source code remains exposed in the scripted model folder. Afte…

---

## [How to use python to scroll through a dataset](https://discourse.slicer.org/t/how-to-use-python-to-scroll-through-a-dataset/35973)

<div class="topic-metadata">

**Author:** [@Tobias](https://discourse.slicer.org/u/Tobias)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 7:07am UTC](https://discourse.slicer.org/t/how-to-use-python-to-scroll-through-a-dataset/35973 "2024-05-08T07:07:17Z")

</div>

Hi I use slicer alot in education but am very new to programing. I would like to make a python script that scrolls through a dataset from the first to the last image in z. So ideally it should be able to get the min an…

---

## [Could I edit qMRML~Widget in Qt designer?](https://discourse.slicer.org/t/could-i-edit-qmrml-widget-in-qt-designer/35684)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 2\
**Last updated:** [April 24, 2024, 2:26am UTC](https://discourse.slicer.org/t/could-i-edit-qmrml-widget-in-qt-designer/35684 "2024-04-24T02:26:39Z")

</div>

Hello everyone, I’m interested in creating a custom widget using the qMRML~Widget in Qt Designer, particularly the qMRMLMarksupROIWidget. For the qMRMLMarksupROIWidget, I only require a slider to adjust the size of the…

---

## [CTK/Slicer UI customization with stylesheet](https://discourse.slicer.org/t/ctk-slicer-ui-customization-with-stylesheet/35936)

<div class="topic-metadata">

**Author:** [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 8:01am UTC](https://discourse.slicer.org/t/ctk-slicer-ui-customization-with-stylesheet/35936 "2024-05-06T08:01:37Z")

</div>

Hey @Sam\_Horvath @lassoan @pieper @jcfr @cpinter I just wanted to bring to your attention this draft PR Reference: visual DICOM browser (and in general CTK) uses Qpalette to change colors dynamically. This does not…

---

## [How to Align a vtk Cylinder to a Known Vector](https://discourse.slicer.org/t/how-to-align-a-vtk-cylinder-to-a-known-vector/35880)

<div class="topic-metadata">

**Author:** [@Teresa\_Marotta](https://discourse.slicer.org/u/Teresa_Marotta)\
**Replies:** 3\
**Last updated:** [May 3, 2024, 7:01pm UTC](https://discourse.slicer.org/t/how-to-align-a-vtk-cylinder-to-a-known-vector/35880 "2024-05-03T19:01:05Z")

</div>

Hi all, I’m looking to create a model of a cylinder and orient it along a known vector using python. More specifically, I have two control points, but I want to create a line that goes between them but extends past the c…

---

## [Calculating RAS locations directly from DICOM image tags (ImagePosition/ ImageOrientation)](https://discourse.slicer.org/t/calculating-ras-locations-directly-from-dicom-image-tags-imageposition-imageorientation/35858)

<div class="topic-metadata">

**Author:** [@Hesam](https://discourse.slicer.org/u/Hesam)\
**Replies:** 5\
**Last updated:** [May 2, 2024, 12:30pm UTC](https://discourse.slicer.org/t/calculating-ras-locations-directly-from-dicom-image-tags-imageposition-imageorientation/35858 "2024-05-02T12:30:07Z")

</div>

Hello everyone, I’m currently using 3D Slicer to identify microbleeds in brain MRIs, utilizing RAS coordinates provided in an accompanying Excel file. While manual identification works perfectly, automating the process …

---

## [A few parametric shapes controlled by markups points](https://discourse.slicer.org/t/a-few-parametric-shapes-controlled-by-markups-points/35854)

<div class="topic-metadata">

**Author:** [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Replies:** 0\
**Last updated:** [May 1, 2024, 2:11pm UTC](https://discourse.slicer.org/t/a-few-parametric-shapes-controlled-by-markups-points/35854 "2024-05-01T14:11:25Z")

</div>

Hello, I have pushed this branch in the ExtraMarkups extension. It offers a few parametric shapes that are controlled by 4 markups control points. More parameters are controlled in the module’s widget. They are all vtkP…

---

## [Editing an Existing NRRD File](https://discourse.slicer.org/t/editing-an-existing-nrrd-file/35817)

<div class="topic-metadata">

**Author:** [@DrBorg](https://discourse.slicer.org/u/DrBorg)\
**Replies:** 4\
**Last updated:** [April 30, 2024, 12:50pm UTC](https://discourse.slicer.org/t/editing-an-existing-nrrd-file/35817 "2024-04-30T12:50:07Z")

</div>

Hello! I have a quick question. I’m using pynrrd to open an existing segmented NRRD file. I’m trying to remove certain segments that are there, then re-save without those removed segments. I have many Segments, and e…

---

## [How to log click on a button in segment editor?](https://discourse.slicer.org/t/how-to-log-click-on-a-button-in-segment-editor/35574)

<div class="topic-metadata">

**Author:** [@lskog](https://discourse.slicer.org/u/lskog)\
**Replies:** 4\
**Last updated:** [April 30, 2024, 2:39am UTC](https://discourse.slicer.org/t/how-to-log-click-on-a-button-in-segment-editor/35574 "2024-04-30T02:39:33Z")

</div>

Hello everyone, while trying to create personal module for slicer a problem occured. I need to log then the user click on “add” button in segment editor and changes tools. I want to create a timer, which will log how lon…

---

## [CLI module output image segmentation](https://discourse.slicer.org/t/cli-module-output-image-segmentation/35797)

<div class="topic-metadata">

**Author:** [@Franciska](https://discourse.slicer.org/u/Franciska)\
**Replies:** 1\
**Last updated:** [April 29, 2024, 2:27pm UTC](https://discourse.slicer.org/t/cli-module-output-image-segmentation/35797 "2024-04-29T14:27:37Z")

</div>

Hi! I would like to create a custom module, just like the BlurImage example. I put mine under Segmentation modules. When using the module, under the IO parameters I can chose Output Volume as creating a new volume, or…

---

## [Move a Qt Dockwidget](https://discourse.slicer.org/t/move-a-qt-dockwidget/35746)

<div class="topic-metadata">

**Author:** [@SANTIAGO\_PENDON\_MING](https://discourse.slicer.org/u/SANTIAGO_PENDON_MING)\
**Replies:** 1\
**Last updated:** [April 29, 2024, 1:51pm UTC](https://discourse.slicer.org/t/move-a-qt-dockwidget/35746 "2024-04-29T13:51:17Z")

</div>

Hi to all the community. The task today is move my DockWidgetArea from here: to here: At this moment I’m doing it manually, but I’m sure that specifying the correct configuration it could be made automatically. …

---

## [TI1 module for T1 map](https://discourse.slicer.org/t/ti1-module-for-t1-map/35756)

<div class="topic-metadata">

**Author:** [@abarat21](https://discourse.slicer.org/u/abarat21)\
**Replies:** 0\
**Last updated:** [April 26, 2024, 5:56pm UTC](https://discourse.slicer.org/t/ti1-module-for-t1-map/35756 "2024-04-26T17:56:35Z")

</div>

I have a T1 map file that I have loaded into Slicer. I want to create a simple module that has a TI1 slider that the user slides to change the TI value of the T1 map using the equation 1 - 2 exp(-TI / Tone), and that ou…

---

## [Is there any api update in Slicer 5.7?](https://discourse.slicer.org/t/is-there-any-api-update-in-slicer-5-7/35741)

<div class="topic-metadata">

**Author:** [@derekcbr](https://discourse.slicer.org/u/derekcbr)\
**Replies:** 1\
**Last updated:** [April 26, 2024, 7:26am UTC](https://discourse.slicer.org/t/is-there-any-api-update-in-slicer-5-7/35741 "2024-04-26T07:26:30Z")

</div>

args = \[slicer\_output\_file, "--additional-module-paths", slice\_installation\_path, "--python-code", "print('Start Slicer from Blender!')", "--python-script", startup\_slice\_script\_file\] process = subprocess.Popen(\[slicer\_p…

---

## [How to get output result in ScriptedCLI module?](https://discourse.slicer.org/t/how-to-get-output-result-in-scriptedcli-module/35700)

<div class="topic-metadata">

**Author:** [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 3:59am UTC](https://discourse.slicer.org/t/how-to-get-output-result-in-scriptedcli-module/35700 "2024-04-24T03:59:48Z")

</div>

I’m developing a ScriptedCLI module, doing some image processing. The result of this module is a numpy array which represents a group of points. How can I get this result in Slicer?

---

## [Hide mainWindow title bar](https://discourse.slicer.org/t/hide-mainwindow-title-bar/35666)

<div class="topic-metadata">

**Author:** [@park](https://discourse.slicer.org/u/park)\
**Replies:** 3\
**Last updated:** [April 23, 2024, 3:58pm UTC](https://discourse.slicer.org/t/hide-mainwindow-title-bar/35666 "2024-04-23T15:58:26Z")

</div>

Hi all. I would like to hide the title bar of the mainWindow (as shown in the figure below). Thus, I have tried the code below, But the mainWindow itself closed. Could I get solution about this ? flags = qt.Qt.Framel…

---

## [How to show a fiducial in only specified views?](https://discourse.slicer.org/t/how-to-show-a-fiducial-in-only-specified-views/35682)

<div class="topic-metadata">

**Author:** [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 2:58pm UTC](https://discourse.slicer.org/t/how-to-show-a-fiducial-in-only-specified-views/35682 "2024-04-23T14:58:19Z")

</div>

I have a vtkMRMLMarkupsFiducialNode and want to show it only a few views, e.g. Red+, Green+ and Yellow+. How can I do that?

---

## [Is it possible to control the crosshair to only be visible in certain views?](https://discourse.slicer.org/t/is-it-possible-to-control-the-crosshair-to-only-be-visible-in-certain-views/35406)

<div class="topic-metadata">

**Author:** [@matrosica0808](https://discourse.slicer.org/u/matrosica0808)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 9:48am UTC](https://discourse.slicer.org/t/is-it-possible-to-control-the-crosshair-to-only-be-visible-in-certain-views/35406 "2024-04-23T09:48:21Z")

</div>

The extension is configured to enable tracking of data at various points in time. I want to use crosshair according to each point of view. Is there a way to create a crosshair instance as below? If you do this, they all…

---

## [Deleting segment increases RAM usage](https://discourse.slicer.org/t/deleting-segment-increases-ram-usage/35626)

<div class="topic-metadata">

**Author:** [@Kostr](https://discourse.slicer.org/u/Kostr)\
**Replies:** 2\
**Last updated:** [April 22, 2024, 12:00pm UTC](https://discourse.slicer.org/t/deleting-segment-increases-ram-usage/35626 "2024-04-22T12:00:29Z")

</div>

Hello, For my undergraduate project, I am developing a Slicer extension that opens a volume and a segmentation containing numerous segments. Since some segments within the segmentation are incorrect, my extension shoul…

---

## [Did anyone try to install  Brain-Tumor-Segmentaion-on-3D-Slicer Extension?](https://discourse.slicer.org/t/did-anyone-try-to-install-brain-tumor-segmentaion-on-3d-slicer-extension/35614)

<div class="topic-metadata">

**Author:** [@JSteinJ](https://discourse.slicer.org/u/JSteinJ)\
**Replies:** 2\
**Last updated:** [April 22, 2024, 9:22am UTC](https://discourse.slicer.org/t/did-anyone-try-to-install-brain-tumor-segmentaion-on-3d-slicer-extension/35614 "2024-04-22T09:22:31Z")

</div>

I found Brain-Tumor-Segmentation-on-3D-Slicer extension on git which looks very interesting. In the tutorial video Slicer 5.0.3 is used on a Mac. I tried to install it on win11 and ubnuntu 22.04 which works but the l…

---

## [Finding the minimum value of each sequence](https://discourse.slicer.org/t/finding-the-minimum-value-of-each-sequence/35597)

<div class="topic-metadata">

**Author:** [@dael0207](https://discourse.slicer.org/u/dael0207)\
**Replies:** 3\
**Last updated:** [April 22, 2024, 1:45am UTC](https://discourse.slicer.org/t/finding-the-minimum-value-of-each-sequence/35597 "2024-04-22T01:45:59Z")

</div>

“Hello esteemed folks! I’m a beginner user of Slicer. During development, I need to find the minimum value of each sequence. How can I achieve this using Python? I’ll attach a picture. If my question isn’t clear, I’ll ma…

---

## [How to Dynamically Retrieve Current Slice Displayed in Red View as Independent Volume Node in 3D Slicer?](https://discourse.slicer.org/t/how-to-dynamically-retrieve-current-slice-displayed-in-red-view-as-independent-volume-node-in-3d-slicer/35629)

<div class="topic-metadata">

**Author:** [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Replies:** 1\
**Last updated:** [April 20, 2024, 2:09pm UTC](https://discourse.slicer.org/t/how-to-dynamically-retrieve-current-slice-displayed-in-red-view-as-independent-volume-node-in-3d-slicer/35629 "2024-04-20T14:09:52Z")

</div>

I am developing with 3D Slicer. After importing an image as a volume node, which represents the entire volume, how can I dynamically retrieve the currently displayed slice in the red view as an independent volume node?

---

## [Cannot import name 'vtkMRMLMarkupsLineNode' from 'slicer' for ParameterNode definition](https://discourse.slicer.org/t/cannot-import-name-vtkmrmlmarkupslinenode-from-slicer-for-parameternode-definition/35596)

<div class="topic-metadata">

**Author:** [@arkhanna](https://discourse.slicer.org/u/arkhanna)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 12:16am UTC](https://discourse.slicer.org/t/cannot-import-name-vtkmrmlmarkupslinenode-from-slicer-for-parameternode-definition/35596 "2024-04-19T00:16:07Z")

</div>

Hello Slicer community! I am trying to make a simple Slicer (5.6.2) extension that requires the user to select a markup line from a dropdown list. I use the Qt designer to create a qMRMLNodeComboBox and set nodeTypes to …

---

## [Print oriented bounding boxes(OBB in ras) and obb diameters data for 600 patients](https://discourse.slicer.org/t/print-oriented-bounding-boxes-obb-in-ras-and-obb-diameters-data-for-600-patients/35528)

<div class="topic-metadata">

**Author:** [@hk\_y](https://discourse.slicer.org/u/hk_y)\
**Replies:** 2\
**Last updated:** [April 18, 2024, 10:24am UTC](https://discourse.slicer.org/t/print-oriented-bounding-boxes-obb-in-ras-and-obb-diameters-data-for-600-patients/35528 "2024-04-18T10:24:03Z")

</div>

Operating system: mac os python 3.12 Slicer version: 4.8.1 Expected behavior: I’ve labeled and converted over 600 patients’ labels into NRRD files. I want to apply the “obb in ras” and “obb diameter” for label (only o…

---

## [Creating Custom URL protocol in macOS](https://discourse.slicer.org/t/creating-custom-url-protocol-in-macos/35534)

<div class="topic-metadata">

**Author:** [@Gil](https://discourse.slicer.org/u/Gil)\
**Replies:** 3\
**Last updated:** [April 17, 2024, 6:06am UTC](https://discourse.slicer.org/t/creating-custom-url-protocol-in-macos/35534 "2024-04-17T06:06:10Z")

</div>

Operating system: macOS Slicer version: 5.6.2 Expected behavior: based on the developer guide to launch Slicer directly from browser, it will be based on custom url protocol. This is done automatically in the Windows …

---

## [How to export position parameters like slice center and the normal vector for the slice plane?](https://discourse.slicer.org/t/how-to-export-position-parameters-like-slice-center-and-the-normal-vector-for-the-slice-plane/35266)

<div class="topic-metadata">

**Author:** [@Arjun](https://discourse.slicer.org/u/Arjun)\
**Replies:** 3\
**Last updated:** [April 17, 2024, 1:29am UTC](https://discourse.slicer.org/t/how-to-export-position-parameters-like-slice-center-and-the-normal-vector-for-the-slice-plane/35266 "2024-04-17T01:29:19Z")

</div>

Hi! I wanted to know how can we export position parameters like slice center and the normal vector for the slice plane we are viewing such that I can visualize that slice of the 3D data in lets say python? Thanks for th…

---

## [Create an online segmentation mask from navigation data](https://discourse.slicer.org/t/create-an-online-segmentation-mask-from-navigation-data/35518)

<div class="topic-metadata">

**Author:** [@Davide\_Scorza](https://discourse.slicer.org/u/Davide_Scorza)\
**Replies:** 0\
**Last updated:** [April 16, 2024, 8:51am UTC](https://discourse.slicer.org/t/create-an-online-segmentation-mask-from-navigation-data/35518 "2024-04-16T08:51:26Z")

</div>

Dear Slicer community, I am developing a module which includes a navigation step of a surgical robot (it is related to an older topic posted by a colleague some time ago) , and I would like to update the visualization o…

---

## [SliceViews - Propagate volume selection is not working?](https://discourse.slicer.org/t/sliceviews-propagate-volume-selection-is-not-working/35494)

<div class="topic-metadata">

**Author:** [@Davide\_Scorza](https://discourse.slicer.org/u/Davide_Scorza)\
**Replies:** 2\
**Last updated:** [April 16, 2024, 7:08am UTC](https://discourse.slicer.org/t/sliceviews-propagate-volume-selection-is-not-working/35494 "2024-04-16T07:08:23Z")

</div>

Dear slicer community, I’ve been used Slicer from quite a while, and I am currently writing a new module which uses some “old” functions I wrote time ago to automate some interaction with 3D Slicer. In particular, I ne…

---

## [New icons for Slicer: styling to include monochromatic designs and optional accent colors](https://discourse.slicer.org/t/new-icons-for-slicer-styling-to-include-monochromatic-designs-and-optional-accent-colors/35409)

<div class="topic-metadata">

**Author:** [@wenples](https://discourse.slicer.org/u/wenples)\
**Replies:** 5\
**Last updated:** [April 15, 2024, 9:40pm UTC](https://discourse.slicer.org/t/new-icons-for-slicer-styling-to-include-monochromatic-designs-and-optional-accent-colors/35409 "2024-04-15T21:40:48Z")

</div>

Hello all, I wanted to confirm next steps for me and also confirm some followup on QSS/other-styling questions. next steps: Change Slicer BG color in Dark Theme to be #000000 and make sure this works with existing i…

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

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