Materials.item Method
Parent Object:
MaterialsDefined in namespace "adsk::core" and the header file is <Core/Materials/Materials.h>
Description
Returns the specified Material using an index into the collection.
Syntax
"materials_var" is a variable referencing a Materials object.returnValue = materials_var.item(index)
|
"materials_var" is a variable referencing a Materials object.
#include <Core/Materials/Materials.h>
returnValue = materials_var->item(index);
|
Return Value
Material |
Returns the specified material or null if an invalid index is specified. |
Parameters
index |
integer |
The index of the material to return where the first item in the collection is 0. |
Version
Introduced in version August 2014