# Development

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

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

**Page:** 77

---

## [User will be inputing file path](https://discourse.slicer.org/t/user-will-be-inputing-file-path/16937)

<div class="topic-metadata">

**Author:** [@abatpool](https://discourse.slicer.org/u/abatpool)\
**Replies:** 6\
**Last updated:** [May 5, 2021, 2:54pm UTC](https://discourse.slicer.org/t/user-will-be-inputing-file-path/16937 "2021-05-05T14:54:39Z")

</div>

I require the user to input path of file, from which i will be reading marker coordinate. So as raw\_input function is unsupported in python, is there any other function or way to achieve this. user\_input = raw\_input("En…

---

## [Induce deformation](https://discourse.slicer.org/t/induce-deformation/17446)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.slicer.org/u/Jakub_Mitura)\
**Replies:** 5\
**Last updated:** [May 4, 2021, 5:11pm UTC](https://discourse.slicer.org/t/induce-deformation/17446 "2021-05-04T17:11:30Z")

</div>

Hello I would like to induce some deformation and changes in an PET/CT image preferably programmatically for example elastically deform aorta , add some gas bubbles, change size of the inflammatory infiltration … I want…

---

## [What's Causing These Slicer / Python Errors](https://discourse.slicer.org/t/whats-causing-these-slicer-python-errors/17447)

<div class="topic-metadata">

**Author:** [@spycolyf](https://discourse.slicer.org/u/spycolyf)\
**Replies:** 0\
**Last updated:** [May 4, 2021, 4:08pm UTC](https://discourse.slicer.org/t/whats-causing-these-slicer-python-errors/17447 "2021-05-04T16:08:52Z")

</div>

@pieper @lassoan @jcfr @jamesobutler My module works perfectly except if I push the “Set Thickness” button first. Then hardly anything works. If I push other buttons first, everything works perfectly. We beta test next…

---

## [Play a video in slicer](https://discourse.slicer.org/t/play-a-video-in-slicer/17440)

<div class="topic-metadata">

**Author:** [@Chintha\_Siva\_Prasad](https://discourse.slicer.org/u/Chintha_Siva_Prasad)\
**Replies:** 0\
**Last updated:** [May 4, 2021, 12:26pm UTC](https://discourse.slicer.org/t/play-a-video-in-slicer/17440 "2021-05-04T12:26:14Z")

</div>

How can I play a video in slicer3d mrmllWidget from script?

---

## [How to programmatically export data from segment statistics?](https://discourse.slicer.org/t/how-to-programmatically-export-data-from-segment-statistics/17390)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 3\
**Last updated:** [May 4, 2021, 8:05am UTC](https://discourse.slicer.org/t/how-to-programmatically-export-data-from-segment-statistics/17390 "2021-05-04T08:05:32Z")

</div>

Operating system: Windows 10 I use segment statistics to generate a table of all the information I need. My question is how can I export the table of information from slicer programmatically after I use segment statist…

---

## [Build Slicer failed on win10](https://discourse.slicer.org/t/build-slicer-failed-on-win10/15674)

<div class="topic-metadata">

**Author:** [@kejuhn](https://discourse.slicer.org/u/kejuhn)\
**Replies:** 7\
**Last updated:** [April 26, 2021, 12:51pm UTC](https://discourse.slicer.org/t/build-slicer-failed-on-win10/15674 "2021-04-26T12:51:15Z")

</div>

Hi, I followed the Build Instructions to build Slicer on Windows 10. CMake: 3.19.3 Git: 2.30.0.2 Qt: 5.15.2 64-bit (MSVC 2019) Visual Studio 2019 C++ x64 After build Slicer in Visual Studio, 5 errors occurred. H…

---

## [How to create a drop down list with multiple options](https://discourse.slicer.org/t/how-to-create-a-drop-down-list-with-multiple-options/17357)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 4\
**Last updated:** [April 30, 2021, 3:07pm UTC](https://discourse.slicer.org/t/how-to-create-a-drop-down-list-with-multiple-options/17357 "2021-04-30T15:07:26Z")

</div>

How do I create a drop-down list with multiple options and each option onclick performs a different function? I am trying to do this in python for a module.

---

## [Relicensing Slicer source for ITK](https://discourse.slicer.org/t/relicensing-slicer-source-for-itk/17372)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 5\
**Last updated:** [April 29, 2021, 2:56pm UTC](https://discourse.slicer.org/t/relicensing-slicer-source-for-itk/17372 "2021-04-29T14:56:12Z")

</div>

ITKGrowCut is very similar to GrowFromSeeds editor effect in Slicer. They maybe even originated from the same source. If I were to translate vtkImageGrowCutSegment into ITK, do I need to also add Slicer’s license in add…

---

## [Slicer Issues with Displaying Certain DICOM Images](https://discourse.slicer.org/t/slicer-issues-with-displaying-certain-dicom-images/17262)

<div class="topic-metadata">

**Author:** [@spycolyf](https://discourse.slicer.org/u/spycolyf)\
**Replies:** 15\
**Last updated:** [April 27, 2021, 10:24pm UTC](https://discourse.slicer.org/t/slicer-issues-with-displaying-certain-dicom-images/17262 "2021-04-27T22:24:34Z")

</div>

@pieper @jcfr Hello Slicer team, I’m wondering why Slicer has a problem displaying these images while other viewers display them correctly. Here are the images in my DropBox. They are test images, no worries…: Dropbox -…

---

## [How to change the size of module area?](https://discourse.slicer.org/t/how-to-change-the-size-of-module-area/13498)

<div class="topic-metadata">

**Author:** [@xudong\_song](https://discourse.slicer.org/u/xudong_song)\
**Replies:** 0\
**Last updated:** [September 16, 2020, 3:54am UTC](https://discourse.slicer.org/t/how-to-change-the-size-of-module-area/13498 "2020-09-16T03:54:05Z")

</div>

Hello there, I would like to change the outlook of the slicer. How can I change the size of the module area, I want it to keep a small width. what kind of layout in the “main view area” and “the module area” ?

---

## [Put vtkImageData on Red Yellow Green view](https://discourse.slicer.org/t/put-vtkimagedata-on-red-yellow-green-view/10201)

<div class="topic-metadata">

**Author:** [@CreepyTrick](https://discourse.slicer.org/u/CreepyTrick)\
**Replies:** 0\
**Last updated:** [February 11, 2020, 2:02pm UTC](https://discourse.slicer.org/t/put-vtkimagedata-on-red-yellow-green-view/10201 "2020-02-11T14:02:49Z")

</div>

Hello I want to put an vtkImageData on the RGY view…. I already initialized my image data like this: img-\>SetExtent(….) img-\>AllocateScalars(VTK\_DOUBLE, 1); for (….) { for (….) { img-\>SetScalarComponentFrom…

---

## [Observing Only Threshold or Window/Level changes of a display node](https://discourse.slicer.org/t/observing-only-threshold-or-window-level-changes-of-a-display-node/17360)

<div class="topic-metadata">

**Author:** [@nathanbmnt](https://discourse.slicer.org/u/nathanbmnt)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 7:00pm UTC](https://discourse.slicer.org/t/observing-only-threshold-or-window-level-changes-of-a-display-node/17360 "2021-04-27T19:00:58Z")

</div>

Hello, I have a module where I want to do calculations every time a volume node’s window/level or threshold are changed. Right now my observation is just of the modified event of the display node which is very general: …

---

## [Automating deployment of extensions](https://discourse.slicer.org/t/automating-deployment-of-extensions/17345)

<div class="topic-metadata">

**Author:** [@LorenzE](https://discourse.slicer.org/u/LorenzE)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 6:59pm UTC](https://discourse.slicer.org/t/automating-deployment-of-extensions/17345 "2021-04-27T18:59:12Z")

</div>

I am trying to automate the deployment (building and packaging) of a Slicer extension (including a C++ and Python module). From what I understand I need a working slicer build (from source) in order to build and package …

---

## [How to adjust the width of the "module panel"](https://discourse.slicer.org/t/how-to-adjust-the-width-of-the-module-panel/15759)

<div class="topic-metadata">

**Author:** [@Tesla2678](https://discourse.slicer.org/u/Tesla2678)\
**Replies:** 0\
**Last updated:** [February 1, 2021, 12:55am UTC](https://discourse.slicer.org/t/how-to-adjust-the-width-of-the-module-panel/15759 "2021-02-01T00:55:44Z")

</div>

How to adjust the width of the “module panel” by code? Problem: After some custom widgets were added in the “module panel”, a white space generated beside the “module panel”. how to adjust it by code? Thank you!

---

## [Discussion about default display and storage nodes](https://discourse.slicer.org/t/discussion-about-default-display-and-storage-nodes/4595)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 0\
**Last updated:** [October 30, 2018, 6:15pm UTC](https://discourse.slicer.org/t/discussion-about-default-display-and-storage-nodes/4595 "2018-10-30T18:15:38Z")

</div>

Thread for continuing discussion in PR1029: @jcfr: Should we simply disable the creation of node using node constructor from both C++ and python ? That would be consistent with the new behavior we are promoting. @lass…

---

## [Issue with building TubeTK for Slicer](https://discourse.slicer.org/t/issue-with-building-tubetk-for-slicer/4703)

<div class="topic-metadata">

**Author:** [@kantzoul](https://discourse.slicer.org/u/kantzoul)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 6:05pm UTC](https://discourse.slicer.org/t/issue-with-building-tubetk-for-slicer/4703 "2021-04-27T18:05:27Z")

</div>

Hi all, So I’m not really familiar with this stuff so this might be a silly question /problem. I am trying to configure tube TK in cMake. I followed the instructions on their wiki but every time I try to configure I run…

---

## [How to access Slicers Python API via an external program while slicer is running?](https://discourse.slicer.org/t/how-to-access-slicers-python-api-via-an-external-program-while-slicer-is-running/16351)

<div class="topic-metadata">

**Author:** [@fuadamaschin](https://discourse.slicer.org/u/fuadamaschin)\
**Replies:** 3\
**Last updated:** [April 27, 2021, 4:15pm UTC](https://discourse.slicer.org/t/how-to-access-slicers-python-api-via-an-external-program-while-slicer-is-running/16351 "2021-04-27T16:15:59Z")

</div>

As far as I’ve understood this there are 2 main ways to access Slicers Python API: Using the built-in python console Starting slicer with the --python-script or --python-code flag But I want to have an external progra…

---

## [How to programmatically convert some of my segments into models and then get and store information from these models?](https://discourse.slicer.org/t/how-to-programmatically-convert-some-of-my-segments-into-models-and-then-get-and-store-information-from-these-models/17195)

<div class="topic-metadata">

**Author:** [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 3:29pm UTC](https://discourse.slicer.org/t/how-to-programmatically-convert-some-of-my-segments-into-models-and-then-get-and-store-information-from-these-models/17195 "2021-04-27T15:29:52Z")

</div>

Operating system: Windows 10 Slicer version: 4.11 I want to (i)programmatically convert some of my segments into models and then (ii)get and store information from these models. Information like surface area, volume, e…

---

## [Autosave option](https://discourse.slicer.org/t/autosave-option/17025)

<div class="topic-metadata">

**Author:** [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Replies:** 5\
**Last updated:** [April 27, 2021, 1:25am UTC](https://discourse.slicer.org/t/autosave-option/17025 "2021-04-27T01:25:15Z")

</div>

hi guys I’m wondering if slicer haves autosave? its anyone that can guide me pleas or maybe use some python code for autosave

---

## [Trying to create custom DTI volume](https://discourse.slicer.org/t/trying-to-create-custom-dti-volume/17318)

<div class="topic-metadata">

**Author:** [@haz\_lanz](https://discourse.slicer.org/u/haz_lanz)\
**Replies:** 3\
**Last updated:** [April 26, 2021, 11:26pm UTC](https://discourse.slicer.org/t/trying-to-create-custom-dti-volume/17318 "2021-04-26T23:26:51Z")

</div>

Hello, I am trying to use the diffusion tractography capabilities of 3DSlicer to visualise some data I have collected from my PhD research. It is similar to diffusion weighted MRI but does not produce diffusion weighted…

---

## [Relocation of factory-south-macos build build machine (April 26th, 2021)](https://discourse.slicer.org/t/relocation-of-factory-south-macos-build-build-machine-april-26th-2021/17336)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 3\
**Last updated:** [April 26, 2021, 6:35pm UTC](https://discourse.slicer.org/t/relocation-of-factory-south-macos-build-build-machine-april-26th-2021/17336 "2021-04-26T18:35:03Z")

</div>

The build machine factory-south-macos.kitware will be relocated to a different room this afternoon, disruption of macOS build for remaining nightly extension builds should be expected.

---

## [Using other Qt modules in loadable extension](https://discourse.slicer.org/t/using-other-qt-modules-in-loadable-extension/17250)

<div class="topic-metadata">

**Author:** [@LorenzE](https://discourse.slicer.org/u/LorenzE)\
**Replies:** 2\
**Last updated:** [April 26, 2021, 12:43pm UTC](https://discourse.slicer.org/t/using-other-qt-modules-in-loadable-extension/17250 "2021-04-26T12:43:51Z")

</div>

I am trying to include the QtConcurrent module into my loadable extension. So far I tried to set find\_package(Qt5 COMPONENTS Concurrent REQUIRED) in my module’s CMakeLists file. I know that Slicer does not use this modul…

---

## [Data is not in center of slicer views after JumpSlicesToLocation process](https://discourse.slicer.org/t/data-is-not-in-center-of-slicer-views-after-jumpslicestolocation-process/17252)

<div class="topic-metadata">

**Author:** [@luxiaoyang9999](https://discourse.slicer.org/u/luxiaoyang9999)\
**Replies:** 4\
**Last updated:** [April 26, 2021, 4:25am UTC](https://discourse.slicer.org/t/data-is-not-in-center-of-slicer-views-after-jumpslicestolocation-process/17252 "2021-04-26T04:25:35Z")

</div>

Hi all I use the JumpSlicesToLocation to change data in slicer view when mouse position changed, but images in slicer view will not be in view center, how can I solve the problm, this is my code def jumpToCursor(self):…

---

## [Want to make this vtkMRMLSegmentEditorNode::PaintAllowedOutsideAllLockedSegments](https://discourse.slicer.org/t/want-to-make-this-vtkmrmlsegmenteditornode-paintallowedoutsidealllockedsegments/17292)

<div class="topic-metadata">

**Author:** [@Shazam\_L](https://discourse.slicer.org/u/Shazam_L)\
**Replies:** 1\
**Last updated:** [April 25, 2021, 1:35pm UTC](https://discourse.slicer.org/t/want-to-make-this-vtkmrmlsegmenteditornode-paintallowedoutsidealllockedsegments/17292 "2021-04-25T13:35:44Z")

</div>

Hello, I want to pass individual segments that cannot be painted over. Where can I access the segmentation mask so I can specify which segments can be painted over? Thanks, Harsh

---

## [University of Minnesota banned from contributing to Linux kernel](https://discourse.slicer.org/t/university-of-minnesota-banned-from-contributing-to-linux-kernel/17290)

<div class="topic-metadata">

**Author:** [@manjula](https://discourse.slicer.org/u/manjula)\
**Replies:** 2\
**Last updated:** [April 24, 2021, 3:06pm UTC](https://discourse.slicer.org/t/university-of-minnesota-banned-from-contributing-to-linux-kernel/17290 "2021-04-24T15:06:10Z")

</div>

I hope no one willfully and unethically experimenting and submitting deliberate bugs that render false results, at least in the Slicer-Core which will make our research publications useless. https://cse.umn.edu/cs/state…

---

## [segmentation issues ](https://discourse.slicer.org/t/segmentation-issues/17297)

<div class="topic-metadata">

**Author:** [@ensieh](https://discourse.slicer.org/u/ensieh)\
**Replies:** 0\
**Last updated:** [April 24, 2021, 1:23pm UTC](https://discourse.slicer.org/t/segmentation-issues/17297 "2021-04-24T13:23:21Z")

</div>

Hi, I am going to segment my STL file which I have segmented in axial view and smoothed it, i coronal view. but the lines appear and the smooshing is disappeared. As in the attached video. how can I fix it? thank you. …

---

## [What finite element systems do you use with Slicer?](https://discourse.slicer.org/t/what-finite-element-systems-do-you-use-with-slicer/17278)

<div class="topic-metadata">

**Author:** [@pieper](https://discourse.slicer.org/u/pieper)\
**Replies:** 4\
**Last updated:** [April 23, 2021, 10:07pm UTC](https://discourse.slicer.org/t/what-finite-element-systems-do-you-use-with-slicer/17278 "2021-04-23T22:07:21Z")

</div>

Hi - We are doing large deformation mechanical simulation project that currently uses matlab and comsol and would like to switch to something more Slicer-like (free, python-based, extendable, etc). What packages have p…

---

## [How to update position, rotation of segmented Dicom volume?](https://discourse.slicer.org/t/how-to-update-position-rotation-of-segmented-dicom-volume/17264)

<div class="topic-metadata">

**Author:** [@msimonc](https://discourse.slicer.org/u/msimonc)\
**Replies:** 3\
**Last updated:** [April 23, 2021, 2:40pm UTC](https://discourse.slicer.org/t/how-to-update-position-rotation-of-segmented-dicom-volume/17264 "2021-04-23T14:40:04Z")

</div>

Operating system: Windows 10 Slicer version: 4.13.0 I have: Imported a Dicom file Segmented by painting slices (a rotatable shape renders on the stage) Created a Py Extension using Developer Tools | Wizard added a…

---

## [Extension for TiltBrush](https://discourse.slicer.org/t/extension-for-tiltbrush/16791)

<div class="topic-metadata">

**Author:** [@smallvalthoss](https://discourse.slicer.org/u/smallvalthoss)\
**Replies:** 10\
**Last updated:** [April 22, 2021, 9:54pm UTC](https://discourse.slicer.org/t/extension-for-tiltbrush/16791 "2021-04-22T21:54:25Z")

</div>

Hello, I’m thinking of doing an extension that incorporates google’s tilt brush into Slicer. Has anyone done anything similar? Or thought of it? Thanks!

---

## [How to rewrite shift function Development](https://discourse.slicer.org/t/how-to-rewrite-shift-function-development/17201)

<div class="topic-metadata">

**Author:** [@luxiaoyang9999](https://discourse.slicer.org/u/luxiaoyang9999)\
**Replies:** 2\
**Last updated:** [April 22, 2021, 12:41pm UTC](https://discourse.slicer.org/t/how-to-rewrite-shift-function-development/17201 "2021-04-22T12:41:14Z")

</div>

Hi all I want to rewrite the shift key function in Python,but I can not find the origin code about the function, could you tell me where to find the code about shift key and mouse move in slicer?

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

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