-
Scripting – Keyframes not moving properly.
I am trying to move the selected keyframes of the selected properties with script, but it is moving only first selected property keyframes and not second ones.
Here is my script –
var mComp = app.project.activeItem;
var selecLayers = mComp.selectedLayers;
for (i=0;i=0; k–){
var newKeyValue = seleProp[j].keyValue(seleKeys[k]);
var newKeyTime = seleProp[j].keyTime(seleKeys[k]) + 0.06;
var newKey = seleProp[j].addKey(newKeyTime);
seleProp[j].setValueAtKey(newKey, newKeyValue);
seleProp[j].removeKey(seleKeys[k]);
}
}
}
what Am i doing wrong here?pbk
