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

Edit the second parameter in Layer Control with JavaScript

Explorer ,
Apr 07, 2023 Apr 07, 2023

QQ图片20230407150848.pngexpand image

TOPICS
Scripting
368
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
Community Expert ,
Apr 07, 2023 Apr 07, 2023

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

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
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
Explorer ,
Apr 09, 2023 Apr 09, 2023
LATEST

My problem is not solved yet. . .

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
Explorer ,
Apr 07, 2023 Apr 07, 2023

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"

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