Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    $\begingroup$ Very interesting question. I feel like it's a pretty nice workaround for the time being. By the way, if you're open to constructive critisicism, according to python guidelines, you should write method names in snake_case (pep 8) and you should not overwrite the builtin id (could lead to unexpected results if testing for equality) $\endgroup$ Commented Jul 6, 2021 at 18:16
  • 3
    $\begingroup$ getByIdentifier(inputs, "Shader_001") can be replaced with a oneliner next((i for i in inputs if i.identifier == "Shader_001"), None) $\endgroup$ Commented Jul 7, 2021 at 12:18