# Material Class Reference

[Blender Index] [Blender Hierarchy]

Blender materials can be seen in the OOPS window as cyan rectangles More...

`#include <material.h>`

Inherits: Blender

## Public Members

- Material ()
- ~Material ()
- Material (const char* name = "Material")
- char* name
- PyObject* R
- PyObject* G
- PyObject* B
- PyObject* SpecR
- PyObject* SpecG
- PyObject* SpecB
- PyObject* MirR
- PyObject* MirG
- PyObject* MirB
- PyObject* Ref
- PyObject* Alpha
- PyObject* Emit
- PyObject* Amb
- PyObject* Spec
- PyObject* Hard
- PyObject* HaSize

## Detailed Description

Blender materials can be seen in the OOPS window as cyan rectangles. I decided that a list of materials (only their names) are hold by the objects. This is a bit inconsistent with the OOPS window where materials can be connected with objects or meshes for example.

## Material(const char* name = "Material")

A Blender material has always a unique name. The name you give as an argument is only a proposal for the real name. Blender will check if this name is already used and rename the material if necessary.

## char* name

All rectangles you can see in the OOPS window are instances of classes with an unique name for all instances of this class. Nevertheless the name of two instances of different classes can be the same.

## PyObject* R

Red part of color

## PyObject* G

Green part of color

## PyObject* B

Blue part of color

## PyObject* SpecR

Red part of the specular highlight color

## PyObject* SpecG

Green part of the specular highlight color

## PyObject* SpecB

Blue part of the specular highlight color

## PyObject* MirR

Red part of the mirror color

## PyObject* MirG

Green part of the mirror color

## PyObject* MirB

Blue part of the mirror color

## PyObject* Ref

Reflectivity. The degree to which the material reflects the basic color when light falls on it

## PyObject* Alpha

The degree of coverage, which can be used to make materials transparent

## PyObject* Emit

This setting is used for radiosity calculations or light emitting materials (no need to be illuminated by a light source)

## PyObject* Amb

Influence of the ambient light settings (world)

## PyObject* Spec

Degree of sheen (specularity)

## PyObject* Hard

Hardness of the specularity

## PyObject* HaSize

Halo Size

- Author: Jan Walter
- Documentation generated by jan@nvidea on Mon Mar 5 16:57:27 CET 2001

K doc