Skip to main content
BETHOTHEBOSS
Participating Frequently
April 26, 2023
Answered

Turn off eye on a layer

  • April 26, 2023
  • 2 replies
  • 593 views

im doing a script on after effects but i dont know how to make the layer off on the eye button

i try to do, but it doesnt work

cloud.enabled = false;
This topic has been closed for replies.
Correct answer Dan Ebberts

enabled is the correct attribute, and I just verified that this does work:

app.project.activeItem.layer("cloud").enabled = false;

 

2 replies

BETHOTHEBOSS
Participating Frequently
April 26, 2023

nevermind it was correct 😛

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
April 26, 2023

enabled is the correct attribute, and I just verified that this does work:

app.project.activeItem.layer("cloud").enabled = false;

 

BETHOTHEBOSS
Participating Frequently
April 26, 2023

I just saw your answer you're totally right.