Set Timeline Frame Rate using Photoshop scripting
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?
