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

Method onKnobsAboutToBeLoaded

Engine/WriteNode.cpp:1137–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137void
1138WriteNode::onKnobsAboutToBeLoaded(const NodeSerializationPtr& serialization)
1139{
1140 _imp->renderButtonKnob = std::dynamic_pointer_cast<KnobButton>( getKnobByName(kNatronWriteParamStartRender) );
1141 assert( _imp->renderButtonKnob.lock() );
1142
1143 assert(serialization);
1144 NodePtr node = getNode();
1145
1146 //Load the pluginID to create first.
1147 node->loadKnob( _imp->pluginIDStringKnob.lock(), *serialization);
1148
1149 std::string filename = getFileNameFromSerialization( serialization->getKnobsValues() );
1150 //Create the Reader with the serialization
1151 _imp->createWriteNode(false, filename, serialization);
1152 _imp->refreshPluginSelectorKnob();
1153}
1154
1155bool
1156WriteNode::knobChanged(KnobI* k,

Callers

nothing calls this directly

Calls 6

loadKnobMethod · 0.80
createWriteNodeMethod · 0.80
getNodeFunction · 0.70
lockMethod · 0.45

Tested by

no test coverage detected