Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.61 KB

File metadata and controls

50 lines (33 loc) · 1.61 KB

python Get Logical Upstream Nodes

Python katana version

Parse scene to return a list of contributing node connected to the given source node.

Features

  • Configurable : choose how to treat groups nodes.
  • Logical parsing: visit only node contributing to building the scene
  • Should cover the majority of nodegraph cases (if you do have one that yield a weird result please fill an issue !)
settings = ParseSettings()
settings.exluded_asGroupsNodeType = ["GafferThree"]
scene = SceneParser()
scene.settings = settings
scene.source = NodegraphAPI.GetAllSelectedNodes()[0]

result = scene.get_upstream_nodes()
print(result)

Documentation

visit_documentation

Or see the ./doc directory.

Licensing

Apache License 2.0

See LICENSE.md for full licence.

  • ✅ The licensed material and derivatives may be used for commercial purposes.
  • ✅ The licensed material may be distributed.
  • ✅ The licensed material may be modified.
  • ✅ The licensed material may be used and modified in private.
  • ✅ This license provides an express grant of patent rights from contributors.
  • 📏 A copy of the license and copyright notice must be included with the licensed material.
  • 📏 Changes made to the licensed material must be documented