MaterialLibraries.itemByName Method

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

Description

Returns the specified Material Library using the name as seen in the user interface.

Syntax

"materialLibraries_var" is a variable referencing a MaterialLibraries object.
returnValue = materialLibraries_var.itemByName(name)
"materialLibraries_var" is a variable referencing a MaterialLibraries object.

#include <Core/Materials/MaterialLibraries.h>

returnValue = materialLibraries_var->itemByName(name);

Return Value

Type Description
MaterialLibrary Returns the specified material library or null if there's no match on the name.

Parameters

Name Type Description
name string The name of the library to return.

Version

Introduced in version August 2014