Hi there, I have a python script that converts a directory of .dcm’s into a .obj.
In its simplest form the script looks like this:
inputFilePath = "My Input File Path" (Create .obj from .dcm directory) outputFilePath = "My Output File Path"
I was thinking of having the input and output file paths be parameters for a subprocess, so the module can be run multiple times for multiple folder directories of .dcm’s. I am currently running off of the template Andros provided to get a decent understanding. I’ve been looking through other posts, script repos, and the nightly documentation, but I don’t seem to have the clearest view of what I would need to do so I have some questions.
- Is a .xml file required? I wouldn’t need a GUI for what I want to do. If it is required, then I can just do the basic requirements on the nightly docs, so it still executes?
- Would making it run in the command line look like so:
[I’m on Windows and would also like to know for Linux]
python DICOM2OBJ.py inputPath outputPath
“slicer path” --python-code “DICOM2OBJ(inputPath, outputPath”)
- Considering Slicer is open already, would I need to run another line before the module execution or would the one line be enough?
Happy to clarify anything that needs it~ I am learning about scripted modules only recently, so I want to make sure I get the most updated information. Thank you and stay safe <3