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

Method setNodeDef

source/MaterialXCore/Node.cpp:613–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613void NodeGraph::setNodeDef(ConstNodeDefPtr nodeDef)
614{
615 if (nodeDef)
616 {
617 setNodeDefString(nodeDef->getName());
618 }
619 else
620 {
621 removeAttribute(NODE_DEF_ATTRIBUTE);
622 }
623}
624
625InputPtr Node::addInputFromNodeDef(const string& inputName)
626{

Callers 4

mainFunction · 0.45
Document.cppFile · 0.45
mainFunction · 0.45
getNodeDefMethod · 0.45

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected