MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getWriteNodeFromPreComp

Method getWriteNodeFromPreComp

Engine/PrecompNode.cpp:489–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489NodePtr
490PrecompNodePrivate::getWriteNodeFromPreComp() const
491{
492 ChoiceOption userChoiceNodeName = writeNodesKnob.lock()->getActiveEntry();
493
494 if (userChoiceNodeName.id == "None") {
495 return NodePtr();
496 }
497 NodePtr writeNode = app.lock()->getProject()->getNodeByFullySpecifiedName(userChoiceNodeName.id);
498 if (!writeNode) {
499 std::stringstream ss;
500 ss << tr("Could not find a node named %1 in the pre-comp project")
501 .arg( QString::fromUtf8( userChoiceNodeName.id.c_str() ) ).toStdString();
502 Dialogs::errorDialog( tr("Pre-Comp").toStdString(), ss.str() );
503
504 return NodePtr();
505 }
506
507 return writeNode;
508}
509
510void
511PrecompNode::getPrecompInputs(NodesList* nodes) const

Callers

nothing calls this directly

Calls 5

getActiveEntryMethod · 0.80
getProjectMethod · 0.80
toStdStringMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected