OOF2: The Manual

Name

OOF.LoadData.Property.Color — Assign a decorative color to a material. Used internally in data files.

Synopsis

OOF.LoadData.Property.Color(name,color)

Details

  • Parent Menu: OOF.LoadData.Property
  • Callback: function PropertyManager.creatorcallback in module ooflib.engine.propertyregistration
  • Parameters:

    name
    Name of Property. Type: A character string.
    color
    Type: An object of the Color class.

Description

Create an instance of the material Property Color. This command is only used in data files. Data files containing Properties are created by the Materials, Microstructure, Skeleton and Mesh commands in the OOF.File.Save menu.

The name argument should be set to the name of a named Property or to an empty string ('') when setting parameters in an unnamed Property.

See Color for a complete description of the parameters for this Property.