| 323 | } |
| 324 | |
| 325 | void |
| 326 | OutputEffectInstance::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 | |
| 346 | void |
| 347 | OutputEffectInstance::notifyRenderFinished() |
nothing calls this directly
no test coverage detected