Hi! This script simulates Option/Alt+] , hides active group and select the next one ( https://screenpal.com/watch/c0l6qDVmGJf ) I need help for scripting - simulating the opposite, select next group up and make it visible, can anyone help ? (only groups should be selected) cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
// =============Toggle visbility ==============
var idHd = charIDToTypeID( "Hd " );
var desc170 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var list54 = new ActionList();
var ref127 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref127.putEnumerated( idLyr, idOrdn, idTrgt );
list54.putReference( ref127 );
desc170.putList( idnull, list54 );
executeAction( idHd, desc170, DialogModes.NO );
// ========== Simulate shortcut Option/Alt+[ select next goup==================
var idslct = charIDToTypeID( "slct" );
var desc117 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref83 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idBckw = charIDToTypeID( "Bckw" );
ref83.putEnumerated( idLyr, idOrdn, idBckw );
desc117.putReference( idnull, ref83 );
var idMkVs = charIDToTypeID( "MkVs" );
desc117.putBoolean( idMkVs, false );
var idLyrI = charIDToTypeID( "LyrI" );
var list33 = new ActionList();
list33.putInteger( 10 );
desc117.putList( idLyrI, list33 );
executeAction( idslct, desc117, DialogModes.NO );
... View more