Meshroom/bin/meshroom_submit
Fabien Castan ae0c65f563 [core] do not use the task manager in batch command line tools
Avoid usage of multi-threading to launch the computation in command line
tools without interactive needs
2021-10-19 15:48:07 +02:00

22 lines
735 B
Python
Executable file

#!/usr/bin/env python
import argparse
import meshroom
meshroom.setupEnvironment()
import meshroom.core.graph
parser = argparse.ArgumentParser(description='Submit a Graph of processes on renderfarm.')
parser.add_argument('meshroomFile', metavar='MESHROOMFILE.mg', type=str,
help='Filepath to a graph file.')
parser.add_argument('--toNode', metavar='NODE_NAME', type=str,
help='Process the node with its dependencies.')
parser.add_argument('--submitter',
type=str,
default='SimpleFarm',
help='Execute job with a specific submitter.')
args = parser.parse_args()
meshroom.core.graph.submit(args.save, args.submitter, toNode=toNodes)