2 Demonstrates creating instances of a node hierarchy.
6 def createNodes(o, cnt):
10 for i
in xrange(len(nodes) - 1):
11 nodes[i + 1].Parent = nodes[i]
13 def alignNodesInLine(nodes, pt):
14 for i
in xrange(len(nodes)):
19 obj.ParameterBlock.Radius.Value = 3.0
20 nodes = createNodes(obj, 10)
23 copy = nodes[0].CreateTreeInstance()
26 if __name__ ==
"__main__":