Quick update - ‘slicer.util.getNode’ works too! The parameter names were the only thing that changed between what you see below and what I had before.
outputVolumeNode = slicer.mrmlScene.AddNewNodeByClass(“vtkMRMLScalarVolumeNode”)
outputVolumeNode.SetName(‘Axial ACPC’)
resampleModule = slicer.modules.resamplescalarvectordwivolume
parameters = {}
parameters[‘inputVolume’] = slicer.util.getNode(‘Axial’)
parameters[‘outputVolume’] = slicer.util.getNode(‘Axial ACPC’)
parameters[‘referenceVolume’] = slicer.util.getNode(‘Axial’)
parameters[‘transformationFile’] = slicer.util.getNode(‘ACPC_Transform’)
parameters[‘interpolationType’] = ‘linear’
cliNode = slicer.cli.runSync(resampleModule,None,parameters)
if cliNode.GetStatus() & cliNode.ErrorsMask:
errorText = cliNode.GetErrorText()
slicer.mrmlScene.RemoveNode(cliNode)
raise ValueError("CLI execution failed: " + errorText)