Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alicevision/meshroom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFabien Castan <fabcastan@gmail.com>2021-01-22 15:12:29 +0300
committerFabien Castan <fabcastan@gmail.com>2021-01-22 15:12:29 +0300
commit37d3008f9e33886dc5717635a60f0ae8f6d29cde (patch)
tree562d9119c40a27571545330721a0a3ece19c7dcb /bin
parent831443c29d457a5c3ee1aaeb5e2ca920c5ec2dd3 (diff)
[core] rename nodesOfType
Diffstat (limited to 'bin')
-rwxr-xr-xbin/meshroom_photogrammetry10
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