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

Function _mapType

python/Scripts/genmdl.py:112–120  ·  view source on GitHub ↗
(typeName, typeMap, functionName)

Source from the content-addressed store, hash-verified

110 file.write(')')
111
112def _mapType(typeName, typeMap, functionName):
113 if 'mx_constant_filename' == functionName:
114 return 'string'
115 elif ('transformpoint' in functionName) or ('transformvector' in functionName) or ('transformnormal' in functionName):
116 if typeName == 'string':
117 return 'mx_coordinatespace_type'
118 if typeName in typeMap:
119 return typeMap[typeName]
120 return typeName
121
122INDENT = '\t'
123SPACE = ' '

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected