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

Function _setInputValue

python/MaterialX/main.py:91–95  ·  view source on GitHub ↗

Set the typed value of an input by its name, creating a child element to hold the input if needed.

(self, name, value, typeString = '')

Source from the content-addressed store, hash-verified

89#
90
91def _setInputValue(self, name, value, typeString = ''):
92 """Set the typed value of an input by its name, creating a child element
93 to hold the input if needed."""
94 method = getattr(self.__class__, "_setInputValue" + getTypeString(value))
95 return method(self, name, value, typeString)
96
97def _getInputValue(self, name, target = ''):
98 """Return the typed value of an input by its name, taking both the

Callers

nothing calls this directly

Calls 2

getattrFunction · 0.85
getTypeStringFunction · 0.85

Tested by

no test coverage detected