looking for all keyframes
Posted: November 5th, 2011, 9:10 pm
Here's something I'm surprised I've never seen or asked:
Is there a good (meaning foolproof and efficient) trick for knowing what properties on a given layer have keyframes? Let's say you have no idea what properties are keyframed -- it could be one property or a hundred properties, Adobe or third-party, and you need a script to be able to know what has keyframes (then do stuff with that data). This is for a script that has other things to do, not a UI 'just hit the u button' solution.
I must be missing something.
[update: as far as I can tell, it's just a matter of traversing through the layer's properties (and properties of properties), looking for numKeys ... ]
Is there a good (meaning foolproof and efficient) trick for knowing what properties on a given layer have keyframes? Let's say you have no idea what properties are keyframed -- it could be one property or a hundred properties, Adobe or third-party, and you need a script to be able to know what has keyframes (then do stuff with that data). This is for a script that has other things to do, not a UI 'just hit the u button' solution.
I must be missing something.
[update: as far as I can tell, it's just a matter of traversing through the layer's properties (and properties of properties), looking for numKeys ... ]