Is it possible to script brush opacity?
I would like to script the current brush's opacity to 20%. Have done a lot of googling but cant find a clear answer. Is this possible?
On a Mac with Photoshop CS6
I would like to script the current brush's opacity to 20%. Have done a lot of googling but cant find a clear answer. Is this possible?
On a Mac with Photoshop CS6
from script listener. The following code will create the preset. I just tested it in CS6 OSX
// =======================================================
var idMk = charIDToTypeID( "Mk " );
var desc4 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref2 = new ActionReference();
var idBrsh = charIDToTypeID( "Brsh" );
ref2.putClass( idBrsh );
desc4.putReference( idnull, ref2 );
var idUsng = charIDToTypeID( "Usng" );
var ref3 = new ActionReference();
var idPrpr = charIDToTypeID( "Prpr" );
var idCrnT = charIDToTypeID( "CrnT" );
ref3.putProperty( idPrpr, idCrnT );
var idcapp = charIDToTypeID( "capp" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref3.putEnumerated( idcapp, idOrdn, idTrgt );
desc4.putReference( idUsng, ref3 );
executeAction( idMk, desc4, DialogModes.NO );
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.