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

JSX, find and edit smart layer, multiple artboards

Explorer ,
Nov 15, 2023 Nov 15, 2023

I have PSD with multiple arboards where Im using same smart object layer few times.

Inside this layer I have few folders. I need a script which can find a smart object layer named "DATES", then the script should go inside this smart object layer, and inside this layer change folder visibility named "FI" from false to true, and save changes. I try ChatGPT but it looks like there is a problem when I have multiple artboards.

TOPICS
Actions and scripting , Windows
498
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 ,
Nov 15, 2023 Nov 15, 2023

Please post screenshots of the parent documents layers, with all artboards visible and expanded.

 

@Jakub25857702e4sw 

Also, please post a screenshot of one of the DATES smart object layers when edited/opened as a separate document so that the layer structure of the child document is visible with all artboards visible and expanded.

 

 

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 ,
Nov 15, 2023 Nov 15, 2023

Skærmbillede 2023-11-15 095939.png

This is what I have inside smart layer DATES

Inside this lang. folder I have only text

Skærmbillede 2023-11-15 100002.png

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 ,
Nov 15, 2023 Nov 15, 2023

So there will only ever be one smart object named DATES per artboard and it will always be at the top of each artboard layer stack?

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 ,
Nov 15, 2023 Nov 15, 2023

Only one "DATES" layer per artboard, but not sure about position. I in the future I want to add more smart objects like "PRICE", "CTA". Idea behind is, to have one "main design" and make banners in different sizes, in smart layers I'm hiding another languages, so I can generate fast many sizes in many languages. Now I must go manually in to smart, hide language, show another and export artboards, and again and again with each language folder. 

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 ,
Nov 15, 2023 Nov 15, 2023

Artboards and smart objects can often add complexity to automation.

 

If you had one document per design rather than artboards, that can make things easier.

 

If you use layer groups rather than smart objects, then you can use a script such as the following to automate various combinations of layers.

 

https://github.com/mechanicious/photoshopCompositionComposer

 

Just something to think about.

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 ,
Nov 15, 2023 Nov 15, 2023

Problem is I have 5 different sizes with almost same design. I have own script which make as this composer but it works only in single size.

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 ,
Nov 15, 2023 Nov 15, 2023

OK, thinking this through - If the DATES smart object is simply duplicated to the other artboards, you should only need to edit it once and it will automatically update in the other artboards, so no need to loop over all artboards!

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 ,
Nov 15, 2023 Nov 15, 2023
LATEST

Yes, exactly this how I work now 🙂 but I have multiple languages (folders) in this smart layer,  so now I'm showing and hiding folder language manually, and I was thinking to use script which can do this for me instead.

So script is going into DATES smart object layer, show FI folder,  save changes and then designs will be updated in FI language, then add loop to other folders so, hide FI, show DE, save, export... hide DE, show AT, save, export ... etc. Now im doing exactly same thing but manually.

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