I tried shitijmehta's suggestion to no avail. I needed to recombine outputs from the list/series processes and use them in a single tool at the same time. I did however devise an alternative, which I'm happy enough with to use. The basic idea is to take a multivalue raster variable and split it into individual outputs (which is what I wanted in the first place). The downside to my approach is the user has to do it himself in ModelBuilder. The strategy is:1. Create a script with these 3 lines of code:import arcgisscripting
gp = arcgisscripting.create()
gp.SetParameterAsText(2,gp.GetParameterAsText(1))
2. Create a script tool with the script from #1 as the input script and these parameters:
- name: whatever, data type: any value, default everything else
- name: whatever1, data type: string, multivalue: yes, default others
- name: output, data type: raster dataset (or whatever type you need), type: derived, default everything else
3. The Tool Validator script should read:class ToolValidator:
"""Class for validating a tool's parameter values and controlling
the behavior of the tool's dialog."""
def __init__(self):
"""Setup the Geoprocessor and the list of tool parameters."""
import arcgisscripting as ARC
self.GP = ARC.create(9.3)
self.params = self.GP.getparameterinfo()
def initializeParameters(self):
"""Refine the properties of a tool's parameters. This method is
called when the tool is opened."""
self.params[1].Enabled = False
self.params[1].Filter.List = []
return
def updateParameters(self):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parmater
has been changed."""
if self.params[0].Altered:
self.params[1].Enabled = True
self.params[1].Filter.List = str(self.params[0].Value).replace("'",'').split(';')
if self.params[1].Altered:
self.params[2].Value = str(self.params[1].Value)
return
def updateMessages(self):
"""Modify the messages created by internal validation for each tool
parameter. This method is called after internal validation."""
return
4. In Model Builder, add the above script tool and select your multivalue output from another process and the output you want to use as a raster in the following steps. You can do this for as many outputs from the multivalue output as you need.Hope this helps someone