Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
def
_getMTLXFilesInDirectory(path):
26
for
file in os.listdir(path):
27
if
file.endswith(
'.mtlx'
):
28
yield
file
29
30
def
_loadLibrary(file, doc):
31
libDoc = mx.createDocument()
Callers
1
_loadLibraries
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected