Copy link to clipboard
Copied
Is there an easy and simple way?
Copy link to clipboard
Copied
Layer > Ungroup Artboards
Or you can create files with:
File > Export > Artboards to files
Copy link to clipboard
Copied
Thanks, but that is not what I asked. I did my reasearch otherwise I would not ask it here. I have PSB files with artboards, 20-30 in each file, can I convert the artboards in one file to groups or not? I know there are some workarounds, but all take a lot of time.
Copy link to clipboard
Copied
I have PSB files with artboards, 20-30 in each file, can I convert the artboards in one file to groups or not?
This contains different info to your original post:
"convert artboard to a group of layers: Is there an easy and simple way?"
Why do you need to do this? What's the end goal or result?
So, are you looking for a script that will convert every artboard in the active document to a group?
What else?
How would the artboard content be positioned?
Do you then want to batch process many files?
EDIT: Sample files or screenshots are always helpful over guesswork.
Copy link to clipboard
Copied
For extendscript:
var idungroupLayersEvent = stringIDToTypeID( "ungroupLayersEvent" );
var desc241 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref1 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref1.putEnumerated( idLyr, idOrdn, idTrgt );
desc241.putReference( idnull, ref1 );
executeAction( idungroupLayersEvent, desc241, DialogModes.NO );
Or:
ungroupLayersEvent();
function ungroupLayersEvent() {
var c2t = function (s) {
return app.charIDToTypeID(s);
};
var s2t = function (s) {
return app.stringIDToTypeID(s);
};
var descriptor = new ActionDescriptor();
var reference = new ActionReference();
reference.putEnumerated( s2t( "layer" ), s2t( "ordinal" ), s2t( "targetEnum" ));
descriptor.putReference( c2t( "null" ), reference );
executeAction( s2t( "ungroupLayersEvent" ), descriptor, DialogModes.NO );
}
Or:
app.runMenuItem(stringIDToTypeID("ungroupLayersEvent"));
Copy link to clipboard
Copied
Thanks, could you please elaborate a little on what these scripts do and how to use them?
Copy link to clipboard
Copied
Thanks, could you please elaborate a little on what these scripts do and how to use them?
By @jeva72
They all do the same thing, as per your original request, ungrouping (converting) the active/selected Artboard to layers via legacy ExtendScript/JavaScript. As you tagged your post with "actions and scripting" I assumed that was what you were looking for. If you want an action, record it as per the suggestion from @Trevor.Dennis - which is the same as the code that I posted. Or were you looking for UXP scripting?
https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html?m=1
Copy link to clipboard
Copied
I DONT KNOW
Find more inspiration, events, and resources on the new Adobe Community
Explore Now