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

After Effects is all about the keys, baby–so why isn't there an object to represent them?

$
0
0

Why isn't there a keyframe object in the After Effects object model? The hierarchy stops at property, and I can't understand why.

 

This means if I am trying to reference an attribute of an individual keyframe I have to use an index in a function like

app.project.item(index).layer(index).propertySpec.keyInInterpolationType(keyIndex)

 

But that only returns the value, it doesn't give me access to the actual keyframe property. Also, if I'm doing operations that change the number of keyframes in a property this gets very convoluted.

 

Wouldn't it be easier if we could go:

var keys = app.project.item(index).layer.propertySpec.getKeys()

for (i =0; i< keys.length; i++){

     keys[i].keyInterpolationType=something;

}

and have direct access to the attributes of the key? It means you could pass a keyframe to another function directly without having to pass it the property and then the index of the key you want.

 

I'd love to hear from the Adobe people why they made this call.


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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