MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / GetEffect

Method GetEffect

src/Timeline.cpp:430–439  ·  view source on GitHub ↗

Look up a timeline effect

Source from the content-addressed store, hash-verified

428
429// Look up a timeline effect
430openshot::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
441openshot::EffectBase* Timeline::GetClipEffect(const std::string& id)
442{

Callers 1

GetClipEffectMethod · 0.45

Calls 1

IdMethod · 0.45

Tested by

no test coverage detected