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

Random layer visibility script

New Here ,
Sep 18, 2023 Sep 18, 2023

Hi, I'm just starting my adventure with creating scripts.
I'm looking for a way to create a "random" illustration based on sets of elements. I mean the case where we set up a scene where each element appears in several versions (e.g. organized in folders with only one visible layer) and the entire illustration is generated randomly. Something like a character generator in games. It is important that this happens automatically for a certain number of activities and that PS also exports files automatically to the folder.

Do you have this or a similar script that I could analyze, learn something about its structure and remember for the future?

Thank you in advance 🙂
Dawid

TOPICS
Actions and scripting , macOS
289
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 18, 2023 Sep 18, 2023
quote

Hi, I'm just starting my adventure with creating scripts.

By @Dawid Wiącek

 

I'd suggest that you have given yourself a complicated first project.

 

I'd suggest that you start small and build knowledge upon knowledge via experience.

 

First, learn how to turn on or off a single layer's visibility.

 

Then how do you do this for layers within a set/group?

 

How do you then iterate over all layers and their content?

 

How to randomly select a layer inside a group? What really is random anyway? Perhaps you actually want something else?

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/script-to-turn-on-random-layers-expor...

 

https://github.com/mechanicious/photoshopCompositionComposer/tree/master

 

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 18, 2023 Sep 18, 2023
LATEST
quote

What really is random anyway?

I think technically »pseudo-randomness« is the best we can use so far. 

Not that it should make a difference in most cases. 

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