Skip to main content

Function: packageFromArchive()

packageFromArchive(archive, options?): MaterialXPackage

Builds a package from an inspected archive. Accepts the result of inspectMaterialXZipArchive; throws if the archive reported errors or has no root document.

Parameters​

archive​

entries​

object[]

issues​

object[]

rootEntry?​

{ data: Uint8Array; path: string; }

rootEntry.data​

Uint8Array

rootEntry.path​

string

options?​

limits?​

Partial<MaterialXReadLimits>

Returns​

MaterialXPackage