playback_accelerated

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Kukurykus, Tom, xbytor

luis miguel
Posts: 16
Joined: Thu Oct 27, 2016 9:56 am

playback_accelerated

Post by luis miguel »

I see this function in some scripts
playback accelerated
I wanted to know what it's for
and how I could use it to have advantages.

Code: Select all



function set_playback_accelerated() {
var idsetd = charIDToTypeID("setd");
var desc5 = new ActionDescriptor();
var idnull = charIDToTypeID("null");
var ref2 = new ActionReference();
var idPrpr = charIDToTypeID("Prpr");
var idPbkO = charIDToTypeID("PbkO");
ref2.putProperty(idPrpr, idPbkO);
var idcapp = charIDToTypeID("capp");
var idOrdn = charIDToTypeID("Ordn");
var idTrgt = charIDToTypeID("Trgt");
ref2.putEnumerated(idcapp, idOrdn, idTrgt);
desc5.putReference(idnull, ref2);
var idT = charIDToTypeID("T ");
var desc6 = new ActionDescriptor();
var idperformance = stringIDToTypeID("performance");
var idperformance = stringIDToTypeID("performance");
var idaccelerated = stringIDToTypeID("accelerated");
desc6.putEnumerated(idperformance, idperformance, idaccelerated);
var idPbkO = charIDToTypeID("PbkO");
desc5.putObject(idT, idPbkO, desc6);
executeAction(idsetd, desc5, DialogModes.NO);
}

User avatar
Jaroslav Bereza
Posts: 38
Joined: Tue Dec 27, 2016 7:22 pm

Re: playback_accelerated

Post by Jaroslav Bereza »

In actions panel you can set how fast actions will be played.
Playing actions from this panel is almost same as playing actions from script.
Default settings is accelerated and this will make you sure that it will be accelerated if user changed it.

luis miguel
Posts: 16
Joined: Thu Oct 27, 2016 9:56 am

Re: playback_accelerated

Post by luis miguel »

Thanks for the reply.