I have a model that passes a variable to a python script. The script uses that variable to query some directories and return a list of paths. What I want to know is: how can I then use each of those paths as the parameter in a subsequent operation? Is the bridge between python and ModelBuilder a one-way street?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
I assume that you've added the Python script to the model by first adding the Python script to the toolbox, setting the script input through the Parameters tab. In the Parameters tab you can add new parameters for the script output. To do this simply change:
Then we can simply use A couple of notes:
Also take a look at the arcpy Setting script tool parameters help. |
|||
|