Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

convert artboard to a group of layers

Explorer ,
Sep 01, 2025 Sep 01, 2025

Is there an easy and simple way?

jeva
TOPICS
Actions and scripting , Windows
115
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Sep 01, 2025 Sep 01, 2025

Layer > Ungroup Artboards

Or you can create files with:

File > Export > Artboards to files

https://www.youtube.com/watch?v=xmrJhk0x5zg&t=273s

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 08, 2025 Sep 08, 2025

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.  

jeva
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 08, 2025 Sep 08, 2025
LATEST
quote

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 01, 2025 Sep 01, 2025

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"));
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 08, 2025 Sep 08, 2025

Thanks, could you please elaborate a little on what these scripts do and how to use them?

jeva
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 08, 2025 Sep 08, 2025
quote

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 03, 2025 Sep 03, 2025

I DONT KNOW

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines