| 1135 | } |
| 1136 | |
| 1137 | void |
| 1138 | WriteNode::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 | |
| 1155 | bool |
| 1156 | WriteNode::knobChanged(KnobI* k, |
nothing calls this directly
no test coverage detected