yggdrasil opened this issue on Mar 29, 2005 ยท 19 posts
yggdrasil posted Tue, 29 March 2005 at 4:31 PM
Added terrain (named T1) and populated with LOW density of bollards (160 instances).
Simple python script (below) and WAIT.
<br></br>def pyLightsCallback(k):<br></br><br></br> T = ObjectByName("T1")<br></br><br></br> Eco = GetEcosystemOnObject(T)<br></br><br></br> strong = 20<br></br><br></br> for i in range(0, Eco.GetInstanceCount()):<br></br><br></br> pos = Eco.GetInstancePosition(i)<br></br><br></br> l1 = AddPointLight()<br></br><br></br> l1.SetPosition(pos[0],pos[1],pos[2]+27)<br></br><br></br> l1.SetPower(strong)<br></br><br></br><br></br><br></br><br></br><br></br>T = ObjectByName("T1")<br></br><br></br>T.SetInitFrameCallback(pyLightsCallback)<br></br><br></br><br></br>
--
Mark
Mark