Skip to content

Latest commit

 

History

History

getLogicalUpstreamNodes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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