![]() |
#1
|
|||
|
|||
for loop concatenation for 300 billboarding trees
Hi there,
I'm trying to run through a loop to billboard many trees in a landscape, instead of doing: land = viz.add('landscape.WRL') tree1 = land.getchild('tree1') tree1.billboard(2) tree2 = land.getchild('tree2') tree1.billboard(2) ... tree300 = land.getchild('tree300') tree300.billboard(2) Can I do a loop with something like this that will allow all the trees to be billboarded? But it wouldn't work: for i in range(20): tree = land.getchild("tree" + i) tree.billboard(2) I'm doing this because the billboarded trees in 3dsmax exported to vrml and into vizard wouldn't work. Thanks in advance eugcc
__________________
Eugene United Kingdom |
Thread Tools | |
Display Modes | Rate This Thread |
|
|