mesh .material .set  (  ObjectID ,  ObjectID ,  Side  )  
                                     
Description :

This instruction assigns a material to all the polygons of a mesh.

Parameters :

  • ObjectID of the mesh.
  • ObjectID of the material.
  • Side of the polygon to assign:
    MATERIAL_FRONTSIDE    Front facing polygons will be assigned.
    MATERIAL_BACKSIDE    Back facing polygons will be assigned.
    MATERIAL_BOTHSIDE    Both side will be assigned.

Examples :