Skip to main content

Function: createMaterialXDocument()

createMaterialXDocument(attributes?, elements?): MaterialXDocument

Creates a document whose typed views are always derived from its canonical element tree. Edit attributes and elements; typed views are read-only snapshots of the current tree.

Parameters​

attributes?​

Record<string, string> = {}

elements?​

MaterialXElement[] = []

Returns​

MaterialXDocument