javae_logo_small
int getDuration();

Function:
Returns comp duration in frames from After Effects comp.

Send:
Nothing.

Returns:
duration in frames (int)

example:
void setup(){
myAE.setUp();
framerate (myAE.getFPS());
//Assuems that framerate is 30 FPS.
if (myAE.getDuration > 60) {
println ("This animation is over 2 seconds);
} else {
println("This animation is 2 seconds or less);
}
}