Look up a timeline effect
| 428 | |
| 429 | // Look up a timeline effect |
| 430 | openshot::EffectBase* Timeline::GetEffect(const std::string& id) |
| 431 | { |
| 432 | // Find the matching effect (if any) |
| 433 | for (const auto& effect : effects) { |
| 434 | if (effect->Id() == id) { |
| 435 | return effect; |
| 436 | } |
| 437 | } |
| 438 | return nullptr; |
| 439 | } |
| 440 | |
| 441 | openshot::EffectBase* Timeline::GetClipEffect(const std::string& id) |
| 442 | { |