Is there any way to move the time indicator of timeline to first frame of the layer using Photoshop script?
Currently, I am using following script to move time indicator between keyframes.
function next_key_frame() {
var d1 = new ActionDescriptor();
var d2 = new ActionDescriptor();
d2.putEnumerated( stringIDToTypeID( "trackID" ), stringIDToTypeID( "stdTrackID" ), stringIDToTypeID( "opacityTrack" ) );
d1.putObject( stringIDToTypeID( "trackID" ), stringIDToTypeID( "animationTrack" ), d2 );
executeAction( stringIDToTypeID( "nextKeyframe" ), d1, DialogModes.NO );
}
function prev_key_frame() {
var d1 = new ActionDescriptor();
var d2 = new ActionDescriptor();
d2.putEnumerated( stringIDToTypeID( "trackID" ), stringIDToTypeID( "stdTrackID" ), stringIDToTypeID( "opacityTrack" ) );
d1.putObject( stringIDToTypeID( "trackID" ), stringIDToTypeID( "animationTrack" ), d2 );
executeAction( stringIDToTypeID( "previousKeyframe" ), d1, DialogModes.NO );
}
But Now, I want to move the time indicator from 0th frame to the first frame of the Layer 2 directly using Photoshop script. Is there any way to do this?
From:
To:
