Skip to main content
Participant
December 2, 2022
Answered

Enable layer in after effects scripting

  • December 2, 2022
  • 1 reply
  • 561 views

Enabling the layer is possible or not in after effects using script. If its possible, How?

This topic has been closed for replies.
Correct answer Dan Ebberts

Do you mean the eyeball in the timeline? That's the layer,s enabled attribute and you just set it to true or false:

app.project.activeItem.layer(1).enabled = true;

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
December 2, 2022

Do you mean the eyeball in the timeline? That's the layer,s enabled attribute and you just set it to true or false:

app.project.activeItem.layer(1).enabled = true;
Participant
December 2, 2022

Thanks. It's working.