Scene.MaterialLibraries

Introduced

v4.0

Description

Returns a LibraryCollection containing the MaterialLibrary objects associated with the scene. This list contains all material libraries under the Source container ("Scene.Sources").

C# Syntax

// get accessor
LibraryCollection rtn = Scene.MaterialLibraries;

Examples

Python Example

# 
# This example demonstrates how to create and access material libraries
# 
Application.NewScene( "", 0 )
# First create a new library
Application.CreateLibrary( "TestMatLib", 1 )
oMatLibs = Application.ActiveProject.ActiveScene.MaterialLibraries
for oLib in oMatLibs :
	Application.LogMessage( oLib )
# Expected result:
#INFO : Sources.Materials.DefaultLib
#INFO : Sources.Materials.TestMatLib

See Also

Scene.ActiveMaterialLibrary Material Library MaterialLibrary SetCurrentMaterialLibrary CreateLibrary MoveToLibrary SICreateMaterial