Returns a material from its index in the Material collection.
Parameters:
iIndex
The index of the material to retrieve in the collection of materials.
Compared with other collections, you cannot use the name of the
material as argument.
Returns:
The retrieved material
Example:
The following example returns in MyMaterial the sixth
material in a material collection.
Dim MyMaterial As Material
Set MyMaterial = Materials.Item(6)
Returns a material from its index in the sorted Material collection.
Parameters:
iIndex
The index of the material to retrieve in the sorted collection of materials.
Compared with other collections, you cannot use the name of the
material as argument.