How to get the seconds on a frame from the timeline
We use the Frame Animation Timline to animate some things for our project, and we want to write a JavaScript tool to export the frame timings to a format that can be read by the rest of our content pipeline.
With the script logging plugin, I've managed to capture how the data is set. But admittedly don't know how to go about pulling the data out of the currently selected frame.
var idsetd = charIDToTypeID( "setd" );
var desc230 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref1 = new ActionReference();
var idanimationFrameClass = stringIDToTypeID( "animationFrameClass" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref1.putEnumerated( idanimationFrameClass, idOrdn, idTrgt );
desc230.putReference( idnull, ref1 );
var idT = charIDToTypeID( "T " );
var desc231 = new ActionDescriptor();
var idanimationFrameDelay = stringIDToTypeID( "animationFrameDelay" );
desc231.putDouble( idanimationFrameDelay, 1.000000 );
var idanimationFrameClass = stringIDToTypeID( "animationFrameClass" );
desc230.putObject( idT, idanimationFrameClass, desc231 );
executeAction( idsetd, desc230, DialogModes.NO );
