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

After Effects Extendscript Scripting: Hide Layer

Engaged ,
Feb 15, 2020 Feb 15, 2020

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.pngexpand image

 

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

myLayer.visible = false
but to no avail.
 
TOPICS
Expressions , How to , Scripting , SDK
4.8K
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 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;

 

Translate
LEGEND ,
Feb 16, 2020 Feb 16, 2020

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

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

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.

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

You should be looking at enabled property:

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

myLayer.enabled = false;

 

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