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

Function _setPropertyValue

python/MaterialX/main.py:207–211  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

205#
206
207def _setPropertyValue(self, name, value, typeString = ''):
208 """Set the typed value of a property by its name, creating a child element
209 to hold the property if needed."""
210 method = getattr(self.__class__, "_setPropertyValue" + getTypeString(value))
211 return method(self, name, value, typeString)
212
213def _getPropertyValue(self, name, target = ''):
214 """Return the typed value of a property by its name. If the given property

Callers

nothing calls this directly

Calls 2

getattrFunction · 0.85
getTypeStringFunction · 0.85

Tested by

no test coverage detected