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

How do I disable all effects inside a currently selected layer using Automation Blocks?

Participant ,
Aug 05, 2022 Aug 05, 2022

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!

TOPICS
Scripting
1.9K
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

correct answers 2 Correct answers

Participant , Aug 05, 2022 Aug 05, 2022

Sorry - I just figured this out - by using the "For each effect", and inside that using the "set atrribute" using the "my effect" variable!

Translate
Community Expert , Aug 05, 2022 Aug 05, 2022

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:
Screenshot 2022-08-06 at 08.49.25.png

Translate
Participant ,
Aug 05, 2022 Aug 05, 2022

Sorry - I just figured this out - by using the "For each effect", and inside that using the "set atrribute" using the "my effect" variable!

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 ,
Aug 05, 2022 Aug 05, 2022

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.

Screenshot 2022-08-06 at 06.57.01.png

 

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.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
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
Participant ,
Aug 05, 2022 Aug 05, 2022

Thank you for the extra tips!

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
Participant ,
Aug 05, 2022 Aug 05, 2022

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.

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 ,
Aug 05, 2022 Aug 05, 2022

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:
Screenshot 2022-08-06 at 08.49.25.png

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
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
Participant ,
Aug 06, 2022 Aug 06, 2022
LATEST

That worked! And that will also be helpful in the future when I run into similar automations.

 

Thank you, again!

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