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

After Effects Extendscript Scripting: Hide Layer

Engaged ,
Feb 15, 2020 Feb 15, 2020

Copy link to clipboard

Copied

Using extendscript, I want to hide a layer; essentially, it should be the equivalent of clicking the following button:

 

AfterFX_2020-02-15_17-06-44.png

 

How would I hide a layer in extendscript? I've tried 

myLayer.visible = false
but to no avail.
 
TOPICS
Expressions , How to , Scripting , SDK

Views

4.4K

Translate

Translate

Report

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 1 Correct answer

Advocate , Feb 16, 2020 Feb 16, 2020

You should be looking at enabled property:

http://docs.aenhancers.com/layers/layer/#layer-enabled

myLayer.enabled = false;

 

Votes

Translate

Translate
LEGEND ,
Feb 16, 2020 Feb 16, 2020

Copy link to clipboard

Copied

It's not that simple. You need to dig into the AVLayer and CompItem objects and toggle the layer switches. Refer to the scripting documentation.

 

Mylenium

Votes

Translate

Translate

Report

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
Engaged ,
Feb 16, 2020 Feb 16, 2020

Copy link to clipboard

Copied

I have looked through the scripting guide and I don't see any such documentation regarding this. That's why I asked here; oftentimes people figure out ways to achieve things not documented.

Votes

Translate

Translate

Report

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
Advocate ,
Feb 16, 2020 Feb 16, 2020

Copy link to clipboard

Copied

LATEST

You should be looking at enabled property:

http://docs.aenhancers.com/layers/layer/#layer-enabled

myLayer.enabled = false;

 

Votes

Translate

Translate

Report

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