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

Function _getMTLXFilesInDirectory

python/Scripts/genmdl.py:25–28  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

23 if os.path.isdir(os.path.join(libraryPath, name))]
24
25def _getMTLXFilesInDirectory(path):
26 for file in os.listdir(path):
27 if file.endswith('.mtlx'):
28 yield file
29
30def _loadLibrary(file, doc):
31 libDoc = mx.createDocument()

Callers 1

_loadLibrariesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected