# Development

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

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

**Page:** 48

---

## [Use same mouse event as segment editor paint effect](https://discourse.slicer.org/t/use-same-mouse-event-as-segment-editor-paint-effect/25306)

<div class="topic-metadata">

**Author:** [@SCY](https://discourse.slicer.org/u/SCY)\
**Replies:** 8\
**Last updated:** [September 29, 2022, 12:36pm UTC](https://discourse.slicer.org/t/use-same-mouse-event-as-segment-editor-paint-effect/25306 "2022-09-29T12:36:58Z")

</div>

Hello everyone, I used vtkcommand mouse events with the interactor style of three render windows (Red, Green, and Yellow). These mouse events triggered my custom callback functions. Everything worked until I add the seg…

---

## [Integrate an existing script to 3D slicer](https://discourse.slicer.org/t/integrate-an-existing-script-to-3d-slicer/25452)

<div class="topic-metadata">

**Author:** [@LuisaDantas](https://discourse.slicer.org/u/LuisaDantas)\
**Replies:** 2\
**Last updated:** [September 28, 2022, 1:06pm UTC](https://discourse.slicer.org/t/integrate-an-existing-script-to-3d-slicer/25452 "2022-09-28T13:06:30Z")

</div>

Hey I developed a Python script to segment the ventricle on a semi automated way and I wanted to make it as an extension to 3D Slicer. I’m new to the software and don’t know much of it. The idea of the original code is…

---

## [Volumes (active volume and lookup table)](https://discourse.slicer.org/t/volumes-active-volume-and-lookup-table/25463)

<div class="topic-metadata">

**Author:** [@Isabella\_Romero](https://discourse.slicer.org/u/Isabella_Romero)\
**Replies:** 0\
**Last updated:** [September 28, 2022, 9:21am UTC](https://discourse.slicer.org/t/volumes-active-volume-and-lookup-table/25463 "2022-09-28T09:21:35Z")

</div>

Hi. I have used slicer to do a segmentation of an image. Now, I am using the module Volumes and I want to select that Segmentation as “Active volume” and display it in red in the “Look Up table”. I have been trying to…

---

## [Where to call logic functions of module](https://discourse.slicer.org/t/where-to-call-logic-functions-of-module/25458)

<div class="topic-metadata">

**Author:** [@michabermoy](https://discourse.slicer.org/u/michabermoy)\
**Replies:** 0\
**Last updated:** [September 28, 2022, 6:09am UTC](https://discourse.slicer.org/t/where-to-call-logic-functions-of-module/25458 "2022-09-28T06:09:28Z")

</div>

Hi, I have created my own module that displays segments. To accomplish this, I added some functions to the logic class of the module, all of which I call in the setup() function of the widget class. While this works well…

---

## [SegmentationUNet Logic Module](https://discourse.slicer.org/t/segmentationunet-logic-module/25433)

<div class="topic-metadata">

**Author:** [@Isabella\_Romero](https://discourse.slicer.org/u/Isabella_Romero)\
**Replies:** 1\
**Last updated:** [September 27, 2022, 3:19am UTC](https://discourse.slicer.org/t/segmentationunet-logic-module/25433 "2022-09-27T03:19:55Z")

</div>

Hi, Does anyone have an example using the SegmentationUNet Logic Module in Python to recreate the segmentation of an image? Thank you.

---

## [IK solution failed and the robot can't move to the Entry point](https://discourse.slicer.org/t/ik-solution-failed-and-the-robot-cant-move-to-the-entry-point/25426)

<div class="topic-metadata">

**Author:** [@xiaosnowqiang](https://discourse.slicer.org/u/xiaosnowqiang)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 6:24pm UTC](https://discourse.slicer.org/t/ik-solution-failed-and-the-robot-cant-move-to-the-entry-point/25426 "2022-09-26T18:24:34Z")

</div>

Hello guys,I have go throught the ROSIGTLTutorial-ISMR2019 recently, after follow the steps of Fiducial Registration Wizard the relationship between the robot and the patient on rviz and 3D Slicer are Confirmed. So…

---

## [Padding of 3d images](https://discourse.slicer.org/t/padding-of-3d-images/25431)

<div class="topic-metadata">

**Author:** [@Aditya\_Prabhakara\_Ka](https://discourse.slicer.org/u/Aditya_Prabhakara_Ka)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 2:46am UTC](https://discourse.slicer.org/t/padding-of-3d-images/25431 "2022-09-26T02:46:44Z")

</div>

Hi, I have a question regarding the padding of 3d images (.nrrd). Say my image dimension is \[256,197,19\] and I want my image to have a size of length and width of 256 and channel 30 making it \[256,256,30\]. What is the s…

---

## [Slicer build error on Windows dashboard](https://discourse.slicer.org/t/slicer-build-error-on-windows-dashboard/25376)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 2\
**Last updated:** [September 23, 2022, 3:38pm UTC](https://discourse.slicer.org/t/slicer-build-error-on-windows-dashboard/25376 "2022-09-23T15:38:52Z")

</div>

Slicer build fails on the dashboard due to SimpleITK: Performing install step for 'SimpleITK' -- SimpleITK: Removing 'install' log files -- SimpleITK: SimpleITK\_WORKING\_DIR: D:/D/P/S-0-build/SimpleITK-build/SimpleIT…

---

## [Build failed on Window10 when "Performing install step for 'python-scipy'"](https://discourse.slicer.org/t/build-failed-on-window10-when-performing-install-step-for-python-scipy/25135)

<div class="topic-metadata">

**Author:** [@Gitty\_Wang](https://discourse.slicer.org/u/Gitty_Wang)\
**Replies:** 5\
**Last updated:** [September 23, 2022, 1:18am UTC](https://discourse.slicer.org/t/build-failed-on-window10-when-performing-install-step-for-python-scipy/25135 "2022-09-23T01:18:09Z")

</div>

Operating system: Window10 Slicer version: 5.1.0 Expected behavior: build successfully and can run \<Slicer\_BUILD\>/Slicer-build/Slicer.exe Actual behavior: build failed with some error about python-scipy. And Slicer.ex…

---

## [How are points on the different Dicom views(axial, sagital, and coronal) synced?](https://discourse.slicer.org/t/how-are-points-on-the-different-dicom-views-axial-sagital-and-coronal-synced/25400)

<div class="topic-metadata">

**Author:** [@dj\_96](https://discourse.slicer.org/u/dj_96)\
**Replies:** 0\
**Last updated:** [September 22, 2022, 3:30pm UTC](https://discourse.slicer.org/t/how-are-points-on-the-different-dicom-views-axial-sagital-and-coronal-synced/25400 "2022-09-22T15:30:07Z")

</div>

I’m trying to label a landmark on one of the views and then be able to sync that mark with the other views and a 3d model reconstruction. From what I understand the image position is the mm position of the slice within t…

---

## [How to Edit line width/thickness from line generated from vtk polydata?](https://discourse.slicer.org/t/how-to-edit-line-width-thickness-from-line-generated-from-vtk-polydata/25380)

<div class="topic-metadata">

**Author:** [@Jack\_Zhang](https://discourse.slicer.org/u/Jack_Zhang)\
**Replies:** 3\
**Last updated:** [September 22, 2022, 3:19pm UTC](https://discourse.slicer.org/t/how-to-edit-line-width-thickness-from-line-generated-from-vtk-polydata/25380 "2022-09-22T15:19:43Z")

</div>

Operating system: Windows 10 Slicer version: 5.0.3 I’m trying to code a python extension that plots a line using points read from a csv file. After creating the script to add the required values to a vtkPoints and vtkP…

---

## [Call a macro by python code](https://discourse.slicer.org/t/call-a-macro-by-python-code/17373)

<div class="topic-metadata">

**Author:** [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Replies:** 3\
**Last updated:** [September 21, 2022, 5:19pm UTC](https://discourse.slicer.org/t/call-a-macro-by-python-code/17373 "2022-09-21T17:19:33Z")

</div>

I want to know if there is a way to run a macro with a python comando

---

## [Python code to Play a Macro](https://discourse.slicer.org/t/python-code-to-play-a-macro/24406)

<div class="topic-metadata">

**Author:** [@Isabella\_Romero](https://discourse.slicer.org/u/Isabella_Romero)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 8:43am UTC](https://discourse.slicer.org/t/python-code-to-play-a-macro/24406 "2022-09-21T08:43:48Z")

</div>

Hi, I have recorded a Macro in slicer and I would like to know if there is a Python command to play the Macro via the python interactor, instead of having to click on the button.

---

## [Cropping on volume intersection](https://discourse.slicer.org/t/cropping-on-volume-intersection/25368)

<div class="topic-metadata">

**Author:** [@Vincebisca](https://discourse.slicer.org/u/Vincebisca)\
**Replies:** 0\
**Last updated:** [September 21, 2022, 8:02am UTC](https://discourse.slicer.org/t/cropping-on-volume-intersection/25368 "2022-09-21T08:02:01Z")

</div>

Hello everyone, I am currently working on CT/MRI registration using Elastix in a script. Since I want to automate as much of the workflow as possible, I want to automate the cropping of CT and MRI volumes and launch Ela…

---

## [SLicerCAT Python partial build failed](https://discourse.slicer.org/t/slicercat-python-partial-build-failed/25349)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 2:31am UTC](https://discourse.slicer.org/t/slicercat-python-partial-build-failed/25349 "2022-09-21T02:31:30Z")

</div>

I’m building SlicerCAT, and all the other projects are succeeding, except the Python project

---

## [Export volume (or segment?) to stl file with python](https://discourse.slicer.org/t/export-volume-or-segment-to-stl-file-with-python/25111)

<div class="topic-metadata">

**Author:** [@Mike\_Flanigan](https://discourse.slicer.org/u/Mike_Flanigan)\
**Replies:** 3\
**Last updated:** [September 21, 2022, 2:18am UTC](https://discourse.slicer.org/t/export-volume-or-segment-to-stl-file-with-python/25111 "2022-09-21T02:18:05Z")

</div>

Hi there, Currently I’ve been working on automating a work flow in python that goes like the following: Load CT scans (as .tiffs) Create a segmentation and threshold to identify air in the scans Automate a mouse click…

---

## [Script to display a table](https://discourse.slicer.org/t/script-to-display-a-table/25338)

<div class="topic-metadata">

**Author:** [@Jack\_Zhang](https://discourse.slicer.org/u/Jack_Zhang)\
**Replies:** 3\
**Last updated:** [September 20, 2022, 3:30pm UTC](https://discourse.slicer.org/t/script-to-display-a-table/25338 "2022-09-20T15:30:16Z")

</div>

Sorry if this is a dumb question, but I’m very new to slicer. I’m trying to code a python module that can display coordinates from a csv file. I know that you can do this with properly formatted csv files using the marku…

---

## [Use OpenCV in SlicerTemplate](https://discourse.slicer.org/t/use-opencv-in-slicertemplate/25350)

<div class="topic-metadata">

**Author:** [@fghazouani](https://discourse.slicer.org/u/fghazouani)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 7:58am UTC](https://discourse.slicer.org/t/use-opencv-in-slicertemplate/25350 "2022-09-20T07:58:32Z")

</div>

I want to use OpenCV in my custom SlicerTemplate (i.e., import cv2 in my code). Please I need some help. Thank you

---

## [Error in camke SlicerCAT assertion error \[DEFINED;\_runtime\_lib\_dirs\]](https://discourse.slicer.org/t/error-in-camke-slicercat-assertion-error-defined-runtime-lib-dirs/25347)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 3:52am UTC](https://discourse.slicer.org/t/error-in-camke-slicercat-assertion-error-defined-runtime-lib-dirs/25347 "2022-09-20T03:52:42Z")

</div>

---

## [Change the Slicer's name and icon](https://discourse.slicer.org/t/change-the-slicers-name-and-icon/25329)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 4\
**Last updated:** [September 20, 2022, 2:19am UTC](https://discourse.slicer.org/t/change-the-slicers-name-and-icon/25329 "2022-09-20T02:19:38Z")

</div>

How to change this Slicer’s name and icon

---

## [Replace scripted module template by scripteddesigner](https://discourse.slicer.org/t/replace-scripted-module-template-by-scripteddesigner/10736)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Replies:** 13\
**Last updated:** [September 19, 2022, 3:00pm UTC](https://discourse.slicer.org/t/replace-scripted-module-template-by-scripteddesigner/10736 "2022-09-19T15:00:51Z")

</div>

We have two scripted module templates now: scripted and scripteddesigner. The “scripted” template has several limitations: GUI widgets are created from code, parameter node is not used (user choices are not saved in the …

---

## [How to add custom plugin to the cpack package](https://discourse.slicer.org/t/how-to-add-custom-plugin-to-the-cpack-package/25322)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 0\
**Last updated:** [September 19, 2022, 3:45am UTC](https://discourse.slicer.org/t/how-to-add-custom-plugin-to-the-cpack-package/25322 "2022-09-19T03:45:09Z")

</div>

i have wrote one custom plugin , and i want the PACKAGE project can package the plugin i try to write the cmake in cmake\_install.cmake like this it does true to package the custom plugin into the slicer project tr…

---

## [How to modify Slicer's style](https://discourse.slicer.org/t/how-to-modify-slicers-style/25300)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 2\
**Last updated:** [September 17, 2022, 6:15am UTC](https://discourse.slicer.org/t/how-to-modify-slicers-style/25300 "2022-09-17T06:15:01Z")

</div>

I want to change the style of the whole Slice person, I guess Slicer should have a QSS file, or change the style in a unified place

---

## [Modify Slicer\_DEFAULT\_HOME\_MODULE and Slicer\_DEFAULT\_FAVORITE\_MODULES](https://discourse.slicer.org/t/modify-slicer-default-home-module-and-slicer-default-favorite-modules/25291)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 4\
**Last updated:** [September 16, 2022, 5:43am UTC](https://discourse.slicer.org/t/modify-slicer-default-home-module-and-slicer-default-favorite-modules/25291 "2022-09-16T05:43:49Z")

</div>

I wanted to change the default module and the default favorite module. I changed the two macros and deleted the slicer.ini file Somewhere else is the vtkslicerconfigure.h file rewritten

---

## [Modifying translation files](https://discourse.slicer.org/t/modifying-translation-files/25292)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 6\
**Last updated:** [September 16, 2022, 5:42am UTC](https://discourse.slicer.org/t/modifying-translation-files/25292 "2022-09-16T05:42:13Z")

</div>

I downloaded the Chinese translation file from the official website, but how can I add the translation file to the Slicer project and then modify it

---

## [About the package](https://discourse.slicer.org/t/about-the-package/25293)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 5:20am UTC](https://discourse.slicer.org/t/about-the-package/25293 "2022-09-16T05:20:27Z")

</div>

How do you get Slicer to include custom modules in the bundle

---

## [Is it possible to load .mitk file into slicer project or load .mrb file into mitk project?](https://discourse.slicer.org/t/is-it-possible-to-load-mitk-file-into-slicer-project-or-load-mrb-file-into-mitk-project/25254)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 14\
**Last updated:** [September 16, 2022, 5:13am UTC](https://discourse.slicer.org/t/is-it-possible-to-load-mitk-file-into-slicer-project-or-load-mrb-file-into-mitk-project/25254 "2022-09-16T05:13:33Z")

</div>

one of my friend use mitk to develop project , and i use slicer , i want to find some ways to communicate with out output files

---

## [How to package my slicer app at every day 21:00 by a script](https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 4\
**Last updated:** [September 16, 2022, 5:11am UTC](https://discourse.slicer.org/t/how-to-package-my-slicer-app-at-every-day-21-00-by-a-script/25287 "2022-09-16T05:11:19Z")

</div>

all i know to package slicer app is to generate PACKAGE project is there a way to package slicer app by a script ? in that way i can package slicer app every night after work , and test Engineer can get the app every…

---

## [Rewrite qMRMLSubjectHierarchyTreeView](https://discourse.slicer.org/t/rewrite-qmrmlsubjecthierarchytreeview/25250)

<div class="topic-metadata">

**Author:** [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Replies:** 3\
**Last updated:** [September 16, 2022, 3:35am UTC](https://discourse.slicer.org/t/rewrite-qmrmlsubjecthierarchytreeview/25250 "2022-09-16T03:35:20Z")

</div>

我想要修改qMRMLSubjectHierarchyTreeView实现一些功能,但是我不想改动它的源码,所以我创建了一个myTreeView继承于qMRMLSubjectHierarchyTreeView,现在问题是我应该怎么样将slicer中的qMRMLSubjectHierarchyTreeView替换成myTreeView I want to change qMRMLSubjectHierarchyTreeView imple…

---

## [Are custom extensions private?](https://discourse.slicer.org/t/are-custom-extensions-private/25264)

<div class="topic-metadata">

**Author:** [@Luca](https://discourse.slicer.org/u/Luca)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 10:05am UTC](https://discourse.slicer.org/t/are-custom-extensions-private/25264 "2022-09-15T10:05:50Z")

</div>

Hello, I’m new to Slicer and would like to create and extension that contains some custome modules. When I created the extension through the extension wizard a CMakeLists.txt was automatically created. This file contains…

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

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