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

Function _setGeomPropValue

python/MaterialX/main.py:227–231  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

225#
226
227def _setGeomPropValue(self, name, value, typeString = ''):
228 """Set the value of a geomprop by its name, creating a child element
229 to hold the geomprop if needed."""
230 method = getattr(self.__class__, "_setGeomPropValue" + getTypeString(value))
231 return method(self, name, value, typeString)
232
233def _addGeomAttr(self, name):
234 "(Deprecated) Add a geomprop to this element."

Callers

nothing calls this directly

Calls 2

getattrFunction · 0.85
getTypeStringFunction · 0.85

Tested by

no test coverage detected