2 Creates a number of boxes with random scale, position, and rotation.
10 return random.random()
14 return -math.pi + (rnd() * 2 * math.pi)
22 return rnd() * 100.0 - 50.0
30 return rnd() * 2.0 + 0.1
34 return MaxPlus.Point3(rndScaleAmount(), rndScaleAmount(), rndScaleAmount())
37 def randomTransformNodes(nodes):
39 n.Scaling = rndScale()
40 n.Rotation = rndQuat()
41 n.Position = rndPosition()
44 def createNodes(obj, cnt):
50 box.ParameterBlock.Length.Value = 10.0
51 box.ParameterBlock.Height.Value = 10.0
52 box.ParameterBlock.Width.Value = 10.0
53 nodes = createNodes(box, 25)
54 randomTransformNodes(nodes)
56 if __name__ ==
"__main__":