Edit the second parameter in Layer Control with JavaScript
Copy link to clipboard
Copied
Copy link to clipboard
Copied
due to the Chinese labels, I am not 100% sure what exactly you want to set.
You can set track matte layer and track matte type with AVLayer.setTrackMatte():
https://ae-scripting.docsforadobe.dev/layers/avlayer.html#avlayer-settrackmatte
Or are you trying to set the parent?
https://ae-scripting.docsforadobe.dev/layers/layer.html#layer-parent
Copy link to clipboard
Copied
My problem is not solved yet. . .
Copy link to clipboard
Copied
I often encounter some png/psd with dirty alpha, so I want to batch process these png/psd.
I use "Autotrace" to get a clean alpha, then set a new mask to the layer with the "set matte" effect, and then save as png/psd
I tried to automate the whole process with a script, but after querying, knowing ae doesn't help me click "OK" in "Autotrace", and I don't know how to set the option in "take matte from layer" in "set matte" to " mask"

