How to convert each folder to smart objects in Photoshop using script?

Community Beginner ,
Jul 28, 2022 Jul 28, 2022

Copy link to clipboard

Copied

Greetings,

I've been looking for a Photoshop script that could help me batch convert each folder (all folders in Photoshop file) to smart objects separately. You can see the example below. 

 

Before

Friskila2521109341c3_0-1659022144086.png

After

Friskila2521109341c3_1-1659022370525.png

 

Currently, I use keyboard shortcut to convert a folder into a smart object, but this way more exhausting if I must convert a large number of folders into smart objects, because the keyboard shortcut just works for one folder only.

I don't know much about JavaScript. But if you find out the script or the other way more faster please help me to solve this problem.

That's all. Thank you in advance 😄

TOPICS
Actions and scripting

Views

39

Likes

Translate

Translate

Report

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

correct answers 3 Correct answers

Adobe Community Professional , Jul 30, 2022 Jul 30, 2022
Adobe Community Professional , Jul 31, 2022 Jul 31, 2022

The script from @Kukurykus in the first link works on both selected layers and layer groups/sets.

 

In the second link, the script that I posted works on all top-level layers and layer groups/sets, without requiring a layer to be selected. Also in the second link are two scripts from @jazz-y  that work with selected or all layers/groups.

Likes

Translate

Translate
Community Beginner , Jul 31, 2022 Jul 31, 2022

Thank you very much! I've tried the second link! It works~

Likes

Translate

Translate
Adobe Community Professional ,
Jul 30, 2022 Jul 30, 2022

Copy link to clipboard

Copied

Compliments on posting meaningful screenshots right away! 

 

Are there Groups in the Groups? 

Likes

Translate

Translate

Report

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 Beginner ,
Jul 31, 2022 Jul 31, 2022

Copy link to clipboard

Copied

Yes, there ae~!

Can Scripts do it?

Likes

Translate

Translate

Report

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 Professional ,
Jul 30, 2022 Jul 30, 2022

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

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 Beginner ,
Jul 31, 2022 Jul 31, 2022

Copy link to clipboard

Copied

Thank you for the information. I've read that. But that applies to layers only.

Likes

Translate

Translate

Report

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 Professional ,
Jul 31, 2022 Jul 31, 2022

Copy link to clipboard

Copied

The script from @Kukurykus in the first link works on both selected layers and layer groups/sets.

 

In the second link, the script that I posted works on all top-level layers and layer groups/sets, without requiring a layer to be selected. Also in the second link are two scripts from @jazz-y  that work with selected or all layers/groups.

Likes

Translate

Translate

Report

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 Beginner ,
Jul 31, 2022 Jul 31, 2022

Copy link to clipboard

Copied

LATEST

Thank you very much! I've tried the second link! It works~

Likes

Translate

Translate

Report

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