MaterialObjectID =  scene .material .get  (  SceneObjectID ,  MaterialIndex  )  
                                     
Description :

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

Parameters :

  • ObjectID of the scene.
  • Index of the material.

Return Handle :

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

Examples :