2022-02-11 09:07:11 +11:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2017-05-30 17:15:58 +02:00
|
|
|
|
|
|
|
|
__all__ = (
|
|
|
|
|
"find_node_input",
|
2018-07-03 07:13:27 +02:00
|
|
|
)
|
2017-05-30 17:15:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# XXX Names are not unique. Returns the first match.
|
|
|
|
|
def find_node_input(node, name):
|
|
|
|
|
for input in node.inputs:
|
|
|
|
|
if input.name == name:
|
|
|
|
|
return input
|
|
|
|
|
|
|
|
|
|
return None
|