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

Method createWriterPath

Engine/OutputEffectInstance.cpp:325–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected