setActiveMaterial

Sets the active Material in a specific object.

setActiveMaterial(
	objectName: string,
	materialName: string
): Promise<void>

Parameters
Description
Type

objectName

The name of the object we want to set the active Material to.

string

materialName

The name of the material we want to make active.

string

Usage:

await modelApi.setActiveMaterial('Adjustable Headband', 'White');

Last updated