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