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

Moderators: xbytor, DavideBarranca, Paul MR

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


Postby luis miguel » Fri Jan 05, 2018 1:24 pm

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: 37
Joined: Tue Dec 27, 2016 7:22 pm

Re: playback_accelerated

Postby Jaroslav Bereza » Sun Jan 07, 2018 11:20 am

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.
Magic Scripts for Photoshop
Pepperbox plugin for Photoshop

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

Re: playback_accelerated

Postby luis miguel » Mon Jan 08, 2018 5:54 pm

Thanks for the reply.

Return to “Photoshop Scripting - General Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests