# Accessing Slicer's Transform Module through terminal

**URL:** https://discourse.slicer.org/t/accessing-slicers-transform-module-through-terminal/11301
**Category:** Support
**Tags:** registration
**Created:** [April 26, 2020, 12:41am UTC](https://discourse.slicer.org/t/accessing-slicers-transform-module-through-terminal/11301 "2020-04-26T00:41:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MachadoL](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/machadol/32/3372_2.png) [@MachadoL](https://discourse.slicer.org/u/MachadoL)
#### Post date: [April 26, 2020, 12:41am UTC](https://discourse.slicer.org/t/accessing-slicers-transform-module-through-terminal/11301/1 "2020-04-26T00:41:17Z")

</div>

Hey Guys, I am trying to do a bash script to run several times the routine `converter` from Slicer `Transforms` module.  
But no clue so far. I google it for a while.

Any help is appreciated.  
Thanks.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [April 26, 2020, 1:25am UTC](https://discourse.slicer.org/t/accessing-slicers-transform-module-through-terminal/11301/2 "2020-04-26T01:25:54Z")

</div>

See how to run scripts in Slicer from the command-line: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Launching\_Slicer](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Launching_Slicer)

Nowadays I would not implement any batch processing in bash, as you can write much more robust, maintainable, and platform-independent scripts in Python. If you already installed Slicer then you have Python already, while bash (and all the essential linux command-line tools) are not generally available on Windows. Also, if you implement something in Python, you can easily move it into a proper module inside Slicer, with a GUI, or copy content from modules into your processing script.

---

<div class="post-metadata">

### Author: ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)
#### Post date: [April 26, 2020, 1:34am UTC](https://discourse.slicer.org/t/accessing-slicers-transform-module-through-terminal/11301/3 "2020-04-26T01:34:38Z")

</div>

Hey Leo my friend. In addition to Andras’s sage guidance you need to give example code. Is this within Slicer or outside scripting? Best, Greg

---

<div class="post-metadata">

### Author: ![MachadoL](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/machadol/32/3372_2.png) [@MachadoL](https://discourse.slicer.org/u/MachadoL)
#### Post date: [April 26, 2020, 1:47am UTC](https://discourse.slicer.org/t/accessing-slicers-transform-module-through-terminal/11301/4 "2020-04-26T01:47:13Z")

</div>

Alright. You got me… I’ll try to run as a python script and give you feedback.

---

<div class="post-metadata">

### Author: ![MachadoL](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/machadol/32/3372_2.png) [@MachadoL](https://discourse.slicer.org/u/MachadoL)
#### Post date: [April 26, 2020, 1:53am UTC](https://discourse.slicer.org/t/accessing-slicers-transform-module-through-terminal/11301/5 "2020-04-26T01:53:34Z")

</div>

You’re right professor… I was trying to do through bash… But didn’t find solution… I’ll try python and see if I can make it work.  
Best,
