Material.IsResolved

Introduced

v4.0

Description

Returns whether the material points to the intended material or not. This may happen in cases of external material libraries that either we moved,

C# Syntax

Boolean Material.IsResolved();

Scripting Syntax

oReturn = Material.IsResolved();

Return Value

boolean

Examples

VBScript Example

NewScene , false
set oRoot = Application.ActiveProject.ActiveScene.Root
set oCube = oRoot.AddGeometry("Cube","MeshSurface")
set oMaterial = oCube.AddMaterial("Phong", siBranch)
set oCylinder = oRoot.AddGeometry("Cylinder","MeshSurface")
oCylinder.SetMaterial oMaterial
Application.LogMessage oMaterial.IsResolved
' This example should log something like:
'INFO : True