I have a nice script I want to run on a bunch of chunks in a project, but can't figure out how to call it properly from the console. I'd like to be able to use it on selected chunks in selected projects whenever I want, but it's fairly complex (for me) to do that outside of the console.
What I would like to do is run a script on a subset of my chunks by first activating a chunk, then running a python script with arguments that works on the active chunk, like this:
for i in range(3,18):
doc.chunk = doc.chunks[i]
task.runscript('c:\my_cheesy_scripts\make_awesome.py', args)
I reviewed methods to do this online and they suggest subprocess.call or execfile, but I can't figure out how to do either one within the PhotoScan console. So I'm left clicking "Run script" and activating each chunk, which is tedious.
Any help is appreciated.