kDebug() << "/////// TRANSITION XML: "<< doc.toString();*/
transitionInfo.startPos = GenTime(e.attribute("in").toInt(), m_doc->fps());
- transitionInfo.endPos = GenTime(e.attribute("out").toInt(), m_doc->fps());
+ transitionInfo.endPos = GenTime(e.attribute("out").toInt() + 1, m_doc->fps());
transitionInfo.track = b_track;
//kDebug() << "/////////////// +++++++++++ ADDING TRANSITION ON TRACK: " << b_track << ", TOTAL TRKA: " << m_projectTracks;
Transition *tr = new Transition(transitionInfo, a_track, m_doc->fps(), base, isAutomatic);
for (int ix = 0; ix < effects.count(); ix++) {
QDomElement effect = effects.at(ix).toElement();
if (effect.tagName() == "filter") {
- kDebug() << " * * * * * * * * * * ** CLIP EFF FND * * * * * * * * * * *";
// add effect to clip
QString effecttag;
QString effectid;
effectindex = effectparam.text();
}
}
-
+ //kDebug() << "+ + CLIP EFF FND: " << effecttag << ", " << effectid << ", " << effectindex;
// get effect standard tags
QDomElement clipeffect = MainWindow::customEffects.getEffectByTag(QString(), effectid);
if (clipeffect.isNull()) clipeffect = MainWindow::videoEffects.getEffectByTag(effecttag, effectid);
QDomNodeList clipeffectparams = currenteffect.childNodes();
if (MainWindow::videoEffects.hasKeyFrames(currenteffect)) {
- kDebug() << " * * * * * * * * * * ** CLIP EFF WITH KFR FND * * * * * * * * * * *";
+ //kDebug() << " * * * * * * * * * * ** CLIP EFF WITH KFR FND * * * * * * * * * * *";
// effect is key-framable, read all effects to retrieve keyframes
double factor;
QString starttag;
if (subeffectparam.attribute("name") == "kdenlive_ix" && subeffectparam.text() != effectindex) {
//We are not in the same effect, stop parsing
lastParsedEffect = n2.previousSibling();
+ ix--;
continueParsing = false;
break;
} else if (subeffectparam.attribute("name") == endtag) {
break;
}
}
- if (continueParsing) keyframes.append(QString::number(effectout) + ":" + QString::number(endvalue) + ";");
- ix++;
+ if (continueParsing) {
+ keyframes.append(QString::number(effectout) + ":" + QString::number(endvalue) + ";");
+ ix++;
+ }
}
params = currenteffect.elementsByTagName("parameter");
if (!continueParsing) {
n2 = lastParsedEffect;
}
+ } else {
+ // Check if effect has in/out points
+ if (effect.hasAttribute("in")) {
+ EffectsList::setParameter(currenteffect, "in", effect.attribute("in"));
+ }
+ if (effect.hasAttribute("out")) {
+ EffectsList::setParameter(currenteffect, "out", effect.attribute("out"));
+ }
}
// adjust effect parameters