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

Function _stringToValue

python/MaterialX/main.py:280–283  ·  view source on GitHub ↗

(Deprecated) Convert a MaterialX value string and Python type to the corresponding Python value.

(string, t)

Source from the content-addressed store, hash-verified

278 return getValueString(value)
279
280def _stringToValue(string, t):
281 "(Deprecated) Convert a MaterialX value string and Python type to the corresponding Python value."
282 warnings.warn("This function is deprecated; call MaterialX.createValueFromStrings instead.", DeprecationWarning, stacklevel = 2)
283 return createValueFromStrings(string, getTypeString(t()))
284
285typeToName = _typeToName
286valueToString = _valueToString

Callers

nothing calls this directly

Calls 2

createValueFromStringsFunction · 0.85
getTypeStringFunction · 0.85

Tested by

no test coverage detected