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

How do I script trackMatte Properties?

New Here ,
Oct 12, 2011 Oct 12, 2011

Copy link to clipboard

Copied

Hello Dan

How do I script the trackmatte ?

AlphaMatte

AlphaInvertMatte

LumaMatte

LumainvertMatte

I have this script

for (i = 0; i < activeItem.selectedLayers.length; i++) {    // loop through selected layers in the comp

         theLayer = activeItem.selectedLayers;

           var thePreset = File("/Applications/Adobe After Effects CS5/Presets/ShiftChannel.ffx");

theLayer.applyPreset(thePreset);  // add animation preset to selected layers

               theLayer.property("Opacity").setValue(50); // set opacity to selected layer

             theLayer.property("TrackMatte").setTrackMatte(AlphaMatte); //set trackMatte to selected layer ??

Thanks

Rob

TOPICS
Scripting

Views

1.4K

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

correct answers 1 Correct answer

Enthusiast , Oct 12, 2011 Oct 12, 2011

Check page 49 of the CS3 scripting guide.

theLayer.trackMatteType = TrackMatteType.ALPHA

also:

TrackMatteType.ALPHA_INVERTED

TrackMatteType.LUMA

TrackMatteType.LUMA_INVERTED

TrackMatteType.NO_TRACK_MATTE

Votes

Translate

Translate
Enthusiast ,
Oct 12, 2011 Oct 12, 2011

Copy link to clipboard

Copied

Check page 49 of the CS3 scripting guide.

theLayer.trackMatteType = TrackMatteType.ALPHA

also:

TrackMatteType.ALPHA_INVERTED

TrackMatteType.LUMA

TrackMatteType.LUMA_INVERTED

TrackMatteType.NO_TRACK_MATTE

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
New Here ,
Oct 12, 2011 Oct 12, 2011

Copy link to clipboard

Copied

Thank you Paul for the answer.

I have CS5 though.

Rob

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
Enthusiast ,
Oct 12, 2011 Oct 12, 2011

Copy link to clipboard

Copied

The CS3 scripting guide was the last version released. You can find it and all the changes since in this post:

http://blogs.adobe.com/toddkopriva/2011/09/scripting-changes-in-after-effects-cs5-5.html

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
New Here ,
Oct 12, 2011 Oct 12, 2011

Copy link to clipboard

Copied

LATEST

OH OK... I will try to get into it and try to understand some of it. Thanks

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