Skip to main content
Participant
September 2, 2020
Question

Accessing layer startTime/outTime in Timeline via JSX

  • September 2, 2020
  • 1 reply
  • 817 views

I've been searching for a way to access the start/end properties of a layer in the Timeline or moving the Current time to that position but I can't find any solution.

Here's what I've discovered:

  • in PIStringTerminology.h startTime and outTime exist;
  • when adjusting the start/end time, ScriptListener records a moveStartTime and moveOutTime with a time offset;
  • Timeline shortcut (Layer+Up or Layer+Down) works - it moves the current time to where the layer starts or end BUT ScriptListener displays this as a move to a specific timecode. Recording an action operates the same.

Is there any way the Timeline shortcuts can be accessed and triggered?

Is there any other way to move the current time to where a layer begins or ends?

This topic has been closed for replies.

1 reply

Participant
September 2, 2020

Thank you r-bin, but I've gone through them.

 

Pressing UP or DOWN keys with a layer selected and Timeline shortcuts enabled moves the current time to the layer start/end but it appears it cannot be recorded. Script listener log records a function to go to a certain time.

More than that, Timeline shortcuts do not appear in the Keyboard shortcut menu.

 

Do you know if there's any way in PS to send a keypress (UP/DOWN keys to trigger the shortcuts)?

While sending keypresses in JS/VBS would be possible, it seems in PS they're not possible. Or maybe?

Legend
September 2, 2020
If I knew or understood what you are talking about, maybe I could help.
The Up (Down) arrows do nothing for me in either 21.2.2 or CS6.

On windows, you can send to Photoshop keyboard commands by calling an external js script, or by running a script for (or executable created by)  autoIt or autoHotKey.