Skip to content

Commit 13bb647

Browse files
committed
[bin] meshroom_batch: Rename Publish nodes to ExportFiles
1 parent bee5583 commit 13bb647

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

bin/meshroom_batch

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ general_group.add_argument(
5858
default=os.environ.get('MESHROOM_DEFAULT_PIPELINE', 'photogrammetry'),
5959
help='Template pipeline among those listed or a Meshroom file containing a custom pipeline to run on input images:\n'
6060
+ '\n'.join([' - ' + p for p in meshroom.core.pipelineTemplates])
61-
+ '\nRequirements: the graph must contain one CameraInit node, and one Publish node if --output is set.',
61+
+ '\nRequirements: the graph must contain one CameraInit node, and one ExportFiles node if --output is set.',
6262
)
6363

6464
general_group.add_argument(
@@ -154,10 +154,10 @@ with meshroom.core.graph.GraphModification(graph):
154154
# initialize template pipeline
155155
loweredPipelineTemplates = {k.lower(): v for k, v in meshroom.core.pipelineTemplates.items()}
156156
if args.pipeline.lower() in loweredPipelineTemplates:
157-
graph.initFromTemplate(loweredPipelineTemplates[args.pipeline.lower()], publishOutputs=True if args.output else False)
157+
graph.initFromTemplate(loweredPipelineTemplates[args.pipeline.lower()], exportOutputs=True if args.output else False)
158158
else:
159159
# custom pipeline
160-
graph.initFromTemplate(args.pipeline, publishOutputs=True if args.output else False)
160+
graph.initFromTemplate(args.pipeline, exportOutputs=True if args.output else False)
161161

162162
def parseInputs(inputs, uniqueInitNode):
163163
"""Utility method for parsing the input and inputRecursive arguments."""
@@ -221,15 +221,15 @@ with meshroom.core.graph.GraphModification(graph):
221221
graph.setVerbose(args.verbose)
222222

223223
if args.output:
224-
# if there is more than 1 Publish node, they will all be set to the same output;
224+
# if there is more than 1 ExportFiles node, they will all be set to the same output;
225225
# depending on what they are connected to, some input files might be overwritten in the output folder
226-
# (e.g. if two Publish nodes are connected to two Texturing nodes)
227-
publishNodes = graph.nodesOfType('Publish')
228-
if len(publishNodes) > 0:
229-
for node in publishNodes:
226+
# (e.g. if two ExportFiles nodes are connected to two Texturing nodes)
227+
exportNodes = graph.nodesOfType('ExportFiles')
228+
if len(exportNodes) > 0:
229+
for node in exportNodes:
230230
node.output.value = os.path.abspath(args.output)
231231
else:
232-
raise RuntimeError("meshroom_batch requires a pipeline graph with at least one Publish node, none found.")
232+
raise RuntimeError("meshroom_batch requires a pipeline graph with at least one ExportFiles node, none found.")
233233

234234
if args.overrides:
235235
with open(args.overrides, encoding='utf-8', errors='ignore') as f:

0 commit comments

Comments
 (0)