| 328 | } |
| 329 | |
| 330 | void |
| 331 | OutputEffectInstance::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 | |
| 351 | void |
| 352 | OutputEffectInstance::notifyRenderFinished() |
nothing calls this directly
no test coverage detected