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

Assistance on Script

Participant ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

I have a script that i'm writing or trying to write and I got to do what I want with a few hiccups. I do a little retouching and usually have a action that sets up my folder/group structure for me, but sometimes I don't need to do a full edit, so I do what I need to do without creating my workflow groups.

 

My script runs and creates two adjustment layers, and sets the parameters and it creates a help group (TempGroup) above them, closes the group and hides it and it selects the first layer (Temp1).

No Group.jpgexpand image

 

Now the script also creates these same layers and the help group (TempGroup) if my workflow group (Color Correction) with a certian name is already created, and it places them in that folder.

Group.jpgexpand image

 

What I'm wanting help with is when, I don't need my workflow folder created how can I make the script when ran twice or multiple times, not create the help (TempGroup) folder over and over again, but create the same layers and always select Temp1? As right now the script always creates the help group (TempGroup) folder.

 

The script does bypass the help group (TempGroup) when it places the layers in the workflow group (Color Correction) but I can't get it to select layer Temp1 which is another problem I'm having. I'm not to familiar with PlaceElements and other commands, so its probably easier that I'm making but any help would be appreciated. Thanks

TOPICS
Actions and scripting

Views

425

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 1 Correct answer

Participant , Sep 07, 2022 Sep 07, 2022

I ended up figuring this out, had to add a function with and argument, and a few variables. This stuff can be time consuming and difficult but at the same time addicting 😊

Votes

Translate

Translate
Adobe
Community Expert ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

Yes, having duplicate named layers isn't great for easy automation.

 

Can you please post an image of the entire layer panel structure in a single image so that the positions of the two groups and the underlying image layer structure is clear. Please expand all groups.

Votes

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
Participant ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

The group is empty I just wanted to post an example of the layer stack. I can make the script output my layers without the help group, and using an else statement it checks for the help group and if it's true, it moves the layer set down and creates the layers, but that's only when the group Color Correction is created. I just need to figure out how to create the layers and the help group, then when ran again bypass the help group. 

Votes

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
Participant ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

What I'm trying to do is make the script run the three layers and group them, but make the help Check Layers group and select the layers group, and when ran again skip making the Check Layers group, just because I don't always need the main group. Hope that makes sense Thanks

Votes

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
Participant ,
Sep 07, 2022 Sep 07, 2022

Copy link to clipboard

Copied

LATEST

I ended up figuring this out, had to add a function with and argument, and a few variables. This stuff can be time consuming and difficult but at the same time addicting 😊

Votes

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
Contributor ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

(removed)

Votes

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
Contributor ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

You could let your script write a keyword to the image metadata to notify
that the helper group has been made, and modify your script accordingly.

Votes

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
Participant ,
Sep 07, 2022 Sep 07, 2022

Copy link to clipboard

Copied

sounds like that's what I need but I'm slowly learning a bit every day, you have an example?

Votes

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