MCPcopy Create free account
hub / github.com/MrKepzie/Natron / createWriterPath

Method createWriterPath

Engine/OutputEffectInstance.cpp:330–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void
331OutputEffectInstance::createWriterPath()
332{
333 ///Make sure that the file path exists
334 KnobPtr fileParam = getKnobByName(kOfxImageEffectFileParamName);
335
336 if (fileParam) {
337 Knob<std::string>* isString = dynamic_cast<Knob<std::string>*>( fileParam.get() );
338 if (isString) {
339 std::string pattern = isString->getValue();
340 std::string path = SequenceParsing::removePath(pattern);
341 std::map<std::string, std::string> env;
342 getApp()->getProject()->getEnvironmentVariables(env);
343 Project::expandVariable(env, path);
344 if ( !path.empty() ) {
345 QDir().mkpath( QString::fromUtf8( path.c_str() ) );
346 }
347 }
348 }
349}
350
351void
352OutputEffectInstance::notifyRenderFinished()

Callers

nothing calls this directly

Calls 6

getAppFunction · 0.85
getProjectMethod · 0.80
emptyMethod · 0.80
getMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected