OOF2: The Manual

Name

OOF.Material.New — Create a new Material.

Synopsis

OOF.Material.New(name,material_type)

Details

  • Parent Menu: OOF.Material
  • Callback: function _newmaterial in module ooflib.engine.IO.materialmenu
  • Parameters:

    name
    Name of the material. Type: A character string, or the variable automatic.
    material_type
    Type of the material. Type: An object from the MaterialType enumerated class.

Description

Create a new Material containing no Properties. If another Material with the same name already exists, <x> will be appended to the new name, where x is an integer chosen to make the new name unique.