FavoriteMaterials.item Method

Parent Object: FavoriteMaterials
Defined in namespace "adsk::core" and the header file is <Core/Materials/FavoriteMaterials.h>

Description

Returns the specified Material using an index into the collection.

Syntax

"favoriteMaterials_var" is a variable referencing a FavoriteMaterials object.
returnValue = favoriteMaterials_var.item(index)
"favoriteMaterials_var" is a variable referencing a FavoriteMaterials object.

#include <Core/Materials/FavoriteMaterials.h>

returnValue = favoriteMaterials_var->item(index);

Return Value

Type Description
Material Returns the specified material or null if an invalid index is specified.

Parameters

Name Type Description
index integer The index of the material to return where the first item in the collection is 0.

Version

Introduced in version August 2014