Copy link to clipboard
Copied
Using extendscript, I want to hide a layer; essentially, it should be the equivalent of clicking the following button:
How would I hide a layer in extendscript? I've tried
You should be looking at enabled property:
http://docs.aenhancers.com/layers/layer/#layer-enabled
myLayer.enabled = false;
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
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.
Copy link to clipboard
Copied
You should be looking at enabled property:
http://docs.aenhancers.com/layers/layer/#layer-enabled
myLayer.enabled = false;