MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / _loadLibrary

Function _loadLibrary

python/Scripts/genmdl.py:30–34  ·  view source on GitHub ↗
(file, doc)

Source from the content-addressed store, hash-verified

28 yield file
29
30def _loadLibrary(file, doc):
31 libDoc = mx.createDocument()
32 mx.readFromXmlFile(libDoc, file)
33 libDoc.setSourceUri(file)
34 doc.importLibrary(libDoc)
35
36def _loadLibraries(doc, searchPath, libraryPath):
37 librarySubPaths = _getSubDirectories(libraryPath)

Callers 1

_loadLibrariesFunction · 0.85

Calls 1

importLibraryMethod · 0.80

Tested by

no test coverage detected