Skip to main content
namodayab94056659
Known Participant
February 6, 2018
Question

Set Timeline Frame Rate using Photoshop scripting

  • February 6, 2018
  • 1 reply
  • 1037 views

I have generated following code for set Frame rate using Photoshop script.

var idsetd = charIDToTypeID( "setd" );

var desc3 = new ActionDescriptor();

var idnull = charIDToTypeID( "null" );

var ref3 = new ActionReference();

var idPrpr = charIDToTypeID( "Prpr" );

var iddocumentTimelineSettings = stringIDToTypeID( "documentTimelineSettings" );

ref3.putProperty( idPrpr, iddocumentTimelineSettings );

var idtimeline = stringIDToTypeID( "timeline" );

ref3.putClass( idtimeline );

desc3.putReference( idnull, ref3 );

var idframeRate = stringIDToTypeID( "frameRate" );

desc3.putDouble( idframeRate, frameRate );

executeAction( idsetd, desc3, DialogModes.NO );

To generate above code I have used ScriptingListener plug-in. Also, I have tried out it on Photoshop CC 2014, 2015 and 2017.

All the versions were working.

I want to know is there any other direct way to set Timeline Frame Rate without using ScriptingListner code?

Also, I want to know is there any reference to understanding for above ScriptingListerner code?

This topic has been closed for replies.

1 reply

Jarda Bereza
Inspiring
February 6, 2018

If you don't want to use C++ this is most direct way.

There is DOM code but DOM code is wrapper and inside is Action Manager (scriptListener) code.

namodayab94056659
Known Participant
February 6, 2018

Thank you very much. I want to do it using Photoshop scripting.

Do you have any reference(link or book) to understand above sample code?

Jarda Bereza
Inspiring
February 6, 2018