Skip to content

Instantly share code, notes, and snippets.

@nicelifeBS
Created November 3, 2017 00:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicelifeBS/2a1621b2735a971cf559698d5db2441b to your computer and use it in GitHub Desktop.
Save nicelifeBS/2a1621b2735a971cf559698d5db2441b to your computer and use it in GitHub Desktop.
Katana - Eval cel with python
prod = NodegraphAPI.GetGeometryProducer()
root = prod.getRootProducer()
cel = root.getAttribute('collections.test.cel').getValue()
node = NodegraphAPI.GetNode('CollectionCreate')
collector = Widget.CollectAndSelectInScenegraph(str(cel), '/root/world/geo')
result = collector.collectAndSelect(select=False, node=node)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment