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

Edit the second parameter in Layer Control with JavaScript

Explorer ,
Apr 07, 2023 Apr 07, 2023

Copy link to clipboard

Copied

QQ图片20230407150848.png

TOPICS
Scripting

Views

326

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

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

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

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

Copy link to clipboard

Copied

LATEST

My problem is not solved yet. . .

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

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"

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