demoSceneGraph.py

demoSceneGraph.py
1 '''
2  Creates a simple text representation of the scene graph
3 '''
4 import MaxPlus
5 
6 
7 def outputNode(n, indent=''):
8  print indent, n.Name
9  for c in n.Children:
10  outputNode(c, indent + '--')
11 
12 if __name__ == '__main__':
13  outputNode(MaxPlus.Core.GetRootNode())