The complete list of material libraries stored in the database.
Creates a custom material and adds it to the custom material library.
The unique name for the custom material.
The created custom material, or null if the material name was not unique.
Adds a remote material library to the database.
The path to the remote material library definition file.
The remote material library that was added, or null if the operation failed.
This function will return null if the library has already been added or if the remote library could not be loaded from the specified path. The path specifies the location of a JSON file which contains the material definitions. See the standard library https://play.prototwin.com/assets/materials/library.json for an example library definition file.
Finds a material with the specified name.
The material name.
The material, or null if not found.
Retrieves the remote material library with the specified path.
The path to the remote material library definition file.
The corresponding remote material library, or null if not previously added.
Retrieves the remote material library with the specified path and adds it to the database if it hasn't already been added.
The path to the remote material library definition file.
The corresponding remote material library, or null if the operation failed.
Removes the custom material with the specified name.
The custom material name.
True if the custom material was removed, false otherwise.
Removes the remote material library with the specified path from the database.
The path to the remote material library definition file.
True if the remote material library was removed, false otherwise.
Materials database.
Remarks
The materials database stores libraries of materials usable in the model.