Jump to content
mat10193

Preview lamps in Eden editor

Recommended Posts

Is it possible to preview lamps placed in the eden editor without having to preview the mission?

  • Like 1

Share this post


Link to post
Share on other sites

Execute from debug console while having only the lamp selected:

get3DENSelected "object" select 0 enableSimulation true
  • Like 2

Share this post


Link to post
Share on other sites

Or if you have a whole bunch of lamps:

{_x enablesimulation true} foreach ((all3DENEntities #0) select {_x iskindof "Lamps_base_F"})

Assuming they inherit from the lamps base, like many of them do.

 

A drawback is that the light source stays around even when the object is deleted. You can work around this by moving the object away from area you're working on before deleting it, or restarting/previewing the mission.

  • Like 2

Share this post


Link to post
Share on other sites
On 7/2/2020 at 7:40 AM, Greenfist said:

Or if you have a whole bunch of lamps:


{_x enablesimulation true} foreach ((all3DENEntities #0) select {_x iskindof "Lamps_base_F"})

Assuming they inherit from the lamps base, like many of them do.

 

A drawback is that the light source stays around even when the object is deleted. You can work around this by moving the object away from area you're working on before deleting it, or restarting/previewing the mission.


This solution spawns a simple lamp in place of an object, so you can't see the difference between rotating the individual lamps on a rugged portable lamp or a wide light cone.

 

On 7/2/2020 at 7:01 AM, 7erra said:

Execute from debug console while having only the lamp selected:


get3DENSelected "object" select 0 enableSimulation true


This solution is needed if you want to be editing the lights themselves.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×