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

ExtendScript: set volume of a layer.

Engaged ,
Mar 22, 2021 Mar 22, 2021

Copy link to clipboard

Copied

Is it possible to set volume of a layer in ExtendScript? I was trying to use something like

 

layer.property("Audio").property("Audio Levels").setValue(1);

 

but that doesn't work.

TOPICS
Scripting

Views

372

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

Explorer , Mar 23, 2021 Mar 23, 2021

The Audio Levels value is probably a 2 element array, one for each channel (L+R).

 

Try this instead:

layer.property("Audio").property("Audio Levels").setValue([1,1]);

 

Votes

Translate

Translate
Explorer ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

The Audio Levels value is probably a 2 element array, one for each channel (L+R).

 

Try this instead:

layer.property("Audio").property("Audio Levels").setValue([1,1]);

 

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
Engaged ,
Mar 24, 2021 Mar 24, 2021

Copy link to clipboard

Copied

LATEST

Yes. That worked. Thank you!

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