Function: detectFormat()
detectFormat(
filePath):MaterialXFormat
Detects the MaterialXFormat of a path from its extension. Anything that is not
.mtlx.zip is treated as a loose .mtlx document, except .mtlz, which is rejected: the
bespoke .mtlz container format is no longer supported.
Parameters
filePath
string