LightObjectID =  scene .light .get  (  SceneObjectID ,  LightIndex  )  
                                     
Description :

This instruction returns the ObjectID for the light currently assigned to a scene.

Parameters :

  • ObjectID of the scene.
  • Index of the light.

Return Handle :

  • ObjectID of the light if the search was successful, NULL otherwise.

Examples :