# IRnMaterialListManager Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | GetMaterialsCount ([out] RtDWORD *pdwCount)
HRESULT | SetMaterialsCount ([in] RtDWORD dwMatNum)
HRESULT | GetMaterialConnectorName ([in] RtDWORD dwIndex,[out] BSTR *bsConName)

## Detailed Description

Material list manager contains list of multiflavor materials forming one multimaterial. Each material input connector is connected to material flavor/chunk manager which is then connected to materials.

## Member Function Documentation

HRESULT IRnMaterialListManager::GetMaterialsCount | ( | [out] RtDWORD * | pdwCount | ) |

Get number of materials.

Parameters:

  | pdwCount | [out] Return value for number of materials.

HRESULT IRnMaterialListManager::SetMaterialsCount | ( | [in] RtDWORD | dwMatNum | ) |

Set number of materials. Increasing number of connectors causes creation of new connectors.
Similarly, decreasing removes N last connectors from material node. Method must be called from master thread.

Parameters:

  | dwMatNum | [in] Set number of materials.

HRESULT IRnMaterialListManager::GetMaterialConnectorName | ( | [in] RtDWORD | dwIndex,
|  | [out] BSTR * | bsConName |
| ) |  |  |

Get material connector name for specified input index.

Parameters:

  | dwIndex | [in] Index value to get connector name for.
  `[out]` | bsConName | Returned name of connector.