Hey, I've tried that code and I can only get it to return 0, do you think you can elaborate on it for a bit?
Unfortunately, I have not worked with animation and have a vague idea of it.
Could you provide a low resolution file with any minimal animation for which the script (for 'frameCount') shows zero? I would then be able to see and, perhaps, figure out what the problem is.
There is no Video Timeline in your file.
Therefore, you need to change the "timeline" to "animationClass".
var r = new ActionReference(); r.putProperty(stringIDToTypeID("property"), stringIDToTypeID("frameCount")); r.putClass(stringIDToTypeID("animationClass")); var ret = executeActionGet(r); alert(ret.getInteger(stringIDToTypeID("frameCount")));
Thanks r-bin. It works great.
Hi, Where can i get "timeline", "animationClass" and other string names which is refering to which.