Skip to main content

system.mes.material.doesMaterialClassExist

Checks if a Material Classes object with the given ID or path exists.

Syntax

system.mes.material.doesMaterialClassExist(idOrPath)

Parameters

ParameterTypeDescription
idOrPathStringThe ULID or path of the material class to check.

Returns

Returns a boolean indicating whether the material class exists.

Code Examples

# Check whether the material class exists
material_class_exists = system.mes.material.doesMaterialClassExist('RAW/FLAV')

# Output the boolean result
print(material_class_exists)