demoSceneGraph.py
Main Page
Topics
Modules
Classes
Examples
demoSceneGraph.py
This reference page is linked to from the following overview topics:
Working with the scene graph
.
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
())