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

Method getInputValue

source/MaterialXCore/Interface.cpp:505–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505ValuePtr InterfaceElement::getInputValue(const string& name, const string& target) const
506{
507 InputPtr input = getInput(name);
508 if (input)
509 {
510 return input->getValue();
511 }
512
513 // Return the value, if any, stored in our declaration.
514 ConstInterfaceElementPtr decl = getDeclaration(target);
515 if (decl)
516 {
517 input = decl->getInput(name);
518 if (input)
519 {
520 return input->getValue();
521 }
522 }
523
524 return ValuePtr();
525}
526
527void InterfaceElement::setVersionIntegers(int majorVersion, int minorVersion)
528{

Callers 8

test_BuildDocumentMethod · 0.80
updateCamerasMethod · 0.80
Node.cppFile · 0.80
Material.cppFile · 0.80
File.cppFile · 0.80
updateCamerasMethod · 0.80
document.spec.jsFile · 0.80

Calls 4

getDeclarationFunction · 0.85
getInputFunction · 0.70
getValueMethod · 0.45
getInputMethod · 0.45

Tested by 1

test_BuildDocumentMethod · 0.64