Skip to main content
Known Participant
February 15, 2015
Question

Is it possible to start timeline playback from a script?

  • February 15, 2015
  • 1 reply
  • 545 views

I'm looking for a way to incorporate the timeline's "play command" (space when using keyboard shortcuts) in my script.

If it is possible to do so I'm able to create a rudimentary flicking/flipping function to aid users in their animation process.

(The scriptListener plugin wont leave any traces btw)

Any help or advice is highly appreciated.

Thanks in advance.

Kind regards

Patrick Deen

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
February 19, 2015

It seems a work-around might be possible but I also do not know a direct approach for this.

http://ps-scripts.com/bb/viewtopic.php?f=9&t=5923&p=27909&hilit=timeline+play&sid=84762a21ace9fee707c80cab4b119093#p27909

Known Participant
February 19, 2015

One work around could be to use a separate jsx and simulate a spacebar key-press.

#target photoshop

app.bringToFront();

app.system( 'osascript -e \'tell application "System Events" to key code 49\'' );

But this is not what I want... I'm looking for a cleaner method.

c.pfaffenbichler
Community Expert
Community Expert
February 20, 2015

Does that actually work for you?