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

ExtendScript: set volume of a layer.

Engaged ,
Mar 22, 2021 Mar 22, 2021

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
563
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

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]);

 

Translate
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]);

 

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

Yes. That worked. Thank you!

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