Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
You're Amazing! Thankyou! WORKS!
Copy link to clipboard
Copied
Hi there I see the dropbox file is deleted... what I am looking for sounds to be similar... All I want to do is create an action that places the playhead at the beginning of the selected layer.
I haven't implemented scripts into a photoshop action before so any help would be great.
Many thanks,
Tom