diff options
author | Fabien Castan <fabcastan@gmail.com> | 2021-01-22 15:12:29 +0300 |
---|---|---|
committer | Fabien Castan <fabcastan@gmail.com> | 2021-01-22 15:12:29 +0300 |
commit | 37d3008f9e33886dc5717635a60f0ae8f6d29cde (patch) | |
tree | 562d9119c40a27571545330721a0a3ece19c7dcb /bin | |
parent | 831443c29d457a5c3ee1aaeb5e2ca920c5ec2dd3 (diff) |
[core] rename nodesOfType
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/meshroom_photogrammetry | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/meshroom_photogrammetry b/bin/meshroom_photogrammetry index 556be74f..3abfd9d1 100755 --- a/bin/meshroom_photogrammetry +++ b/bin/meshroom_photogrammetry @@ -72,7 +72,7 @@ args = parser.parse_args() def getOnlyNodeOfType(g, nodeType): """ Helper function to get a node of 'nodeType' in the graph 'g' and raise if no or multiple candidates. """ - nodes = g.nodesByType(nodeType) + nodes = g.nodesOfType(nodeType) if len(nodes) != 1: raise RuntimeError("meshroom_photogrammetry requires a pipeline graph with exactly one '{}' node, {} found." .format(nodeType, len(nodes))) @@ -163,10 +163,10 @@ with multiview.GraphModification(graph): raise ValueError('Invalid param override: ' + str(p)) node, t, param, value = result.groups() if t == ':': - nodesByType = graph.nodesByType(node) - if not nodesByType: + nodesOfType = graph.nodesOfType(node) + if not nodesOfType: raise ValueError('No node with the type "{}" in the scene.'.format(node)) - for n in nodesByType: + for n in nodesOfType: print('Overrides {node}.{param}={value}'.format(node=node, param=param, value=value)) n.attribute(param).value = value elif t == '.': @@ -178,7 +178,7 @@ with multiview.GraphModification(graph): # setup DepthMap downscaling if args.scale > 0: - for node in graph.nodesByType('DepthMap'): + for node in graph.nodesOfType('DepthMap'): node.downscale.value = args.scale # setup cache directory |