Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Please post screenshots of the parent documents layers, with all artboards visible and expanded.
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.
Copy link to clipboard
Copied
This is what I have inside smart layer DATES
Inside this lang. folder I have only text
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.