Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

94

Likes

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

Likes

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

 

Likes

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!

Likes

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