I want to call the module through Python and make it complete certain work or modify some of the default values in the module.
For example, in “volume rendering” module, “preset” is set to "CT - bones ".
See in this example in the script repository how to show volume rendering with a certain preset.
Thank you for your reply. I really don’t know about it and I don’t have much time to study. May I ask if you can tell me who can help me complete the series of tasks I need? I can pay a certain salary. Thanks very much.
You just need to copy-paste a few lines from example that you can find at the link that I gave. I copy the code here:
import SampleData volumeNode = SampleData.SampleDataLogic().downloadMRHead() volRenLogic = slicer.modules.volumerendering.logic() displayNode = volRenLogic.CreateDefaultVolumeRenderingNodes(volumeNode) displayNode.GetVolumePropertyNode().Copy(volRenLogic.GetPresetByName('MR-Default')) displayNode.SetVisibility(True)