Copy link to clipboard
Copied
Hi!
Right now I have a script that creates an adjustment layer, turns it into a guide layer, and then adds three built-in effects to that layer.
What I want to have happen is disable all three effects after creating them. The name of the comp the layer is inside will always be different, so I don't want to have to click the "refresh" button to have it populate the current effect inside the script for all three effects before I run it each time, if that makes sense?
Thank you!
Sorry - I just figured this out - by using the "For each effect", and inside that using the "set atrribute" using the "my effect" variable!
Do you mean the layer name will be the same, but the comp name not?
In the image above, I showed how to use the "with root layer" option, to change the layer dynamically.
You can also set this option to "with root composition" to only change the comp dynamically:
Copy link to clipboard
Copied
Sorry - I just figured this out - by using the "For each effect", and inside that using the "set atrribute" using the "my effect" variable!
Copy link to clipboard
Copied
Great that you already figured it out!
Extra tip:
If you want to access a particular effect, but on different layers, you can use the "root layer" option to adjust the layer dynamically.
Tip 2
Also note that you can access layers and effects by match name, name or index.
The refresh button uses match names, but instead of
"ADBE Effect Parade/ADBE Gaussian Blur 2"
you could also write
"Effects/Gaussian Blur"
or
"Effects/1"
to access the first effect.
If you use names like "Effects" instead of "ADBE Effect Parade", just notice that you tool won't be combatible with Ae versions in other languages, where this property has a different name.
Copy link to clipboard
Copied
Thank you for the extra tips!
Copy link to clipboard
Copied
Being that clicking the refresh button is not useful to me because the comp names will always be different, how would I disable or enable specific effects in a layer, when I won't know ahead of time what the comp name is? I realized the method I used alters ALL the effects on a layer, but there is one effect I would like to start off as disabled.
Copy link to clipboard
Copied
Do you mean the layer name will be the same, but the comp name not?
In the image above, I showed how to use the "with root layer" option, to change the layer dynamically.
You can also set this option to "with root composition" to only change the comp dynamically:
Copy link to clipboard
Copied
That worked! And that will also be helpful in the future when I run into similar automations.
Thank you, again!