Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Position keyframe equality

$
0
0

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


Viewing all articles
Browse latest Browse all 2143

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>