Skip to main content
Known Participant
November 15, 2023
Question

JSX, find and edit smart layer, multiple artboards

  • November 15, 2023
  • 1 reply
  • 909 views

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.

This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
November 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.

 

 

Known Participant
November 15, 2023

This is what I have inside smart layer DATES

Inside this lang. folder I have only text

Known Participant
November 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!


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.