MCPcopy Create free account
hub / github.com/KDE/kdenlive / addEffectKeyFrame

Method addEffectKeyFrame

src/effects/effectstack/model/effectstackmodel.cpp:1956–1969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1954}
1955
1956bool EffectStackModel::addEffectKeyFrame(int frame, double normalisedVal)
1957{
1958 if (rootItem->childCount() == 0) return false;
1959 int ix = getActiveEffect();
1960 if (ix < 0) {
1961 return false;
1962 }
1963 std::shared_ptr<EffectItemModel> sourceEffect = std::static_pointer_cast<EffectItemModel>(rootItem->child(ix));
1964 std::shared_ptr<KeyframeModelList> listModel = sourceEffect->getKeyframeModel();
1965 if (m_ownerId.type == KdenliveObjectType::TimelineTrack) {
1966 sourceEffect->filter().set("out", pCore->getItemDuration(m_ownerId));
1967 }
1968 return listModel->addKeyframe(frame, normalisedVal);
1969}
1970
1971bool EffectStackModel::removeKeyFrame(int frame)
1972{

Callers 1

addEffectKeyframeMethod · 0.80

Calls 7

childCountMethod · 0.80
childMethod · 0.80
setMethod · 0.80
getItemDurationMethod · 0.80
getKeyframeModelMethod · 0.45
filterMethod · 0.45
addKeyframeMethod · 0.45

Tested by

no test coverage detected