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).
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.
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
1 Correct answer
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 😊
Explore related tutorials & articles
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.
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.
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
Copy link to clipboard
Copied
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 😊
Copy link to clipboard
Copied
(removed)
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.
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?

