How do i check if 2 keyframes have the same value?
I have 1 layer in composition with 2 identical keyframes. But when I try to compare their values, the result is "false". Why? What am I missing?
Here is the code:
$.writeln(app.project.activeItem.layer(1).position.numKeys);
$.writeln(app.project.activeItem.layer(1).position.keyValue(1));
$.writeln(app.project.activeItem.layer(1).position.keyValue(2));
$.writeln(app.project.activeItem.layer(1).position.keyValue(1) == app.project.activeItem.layer(1).position.keyValue(2));
Here is the result from console:
2
960,540,0
960,540,0
false
Thanks,
Martin