Copy link to clipboard
Copied
Hello, I've been tearing my hair simply trying to address the "Audio levels" of a layer,
My script is below, whittled down from just trying to get the property layers from being anything other than "underfined". I've written a handful of small scripts to set layers, trim, make templates, etc. but nothing mroe advanced, Do I not have the match names right? Just don't know (enough) why this isn't working and hoping I can get some help. Thank you in advance.
1 Correct answer
As an additional approach for audios adjustment, consider applying Stereo Mixer effect, and setting audio levels in more convenient [0..100] range, where 0 is fully muted, and 100 - full original levels of sound.
Copy link to clipboard
Copied
selectedLayers is an array. you should add:
for(var i = 0; i < selectedLayers.length; i++) {
var layer = selectedLayers[i];
//now address each layer's audio levels property.
}
Copy link to clipboard
Copied
Thank you this is helpful
Copy link to clipboard
Copied
As an additional approach for audios adjustment, consider applying Stereo Mixer effect, and setting audio levels in more convenient [0..100] range, where 0 is fully muted, and 100 - full original levels of sound.
Copy link to clipboard
Copied
I suppose that makes it so that you could make your audio adjustemtns as usual,a dn this script would them paste keyframes in a manner that does not interfere with the audio levels youve already dialed in. thank you I think I've sen a script example of this somewhere.
Copy link to clipboard
Copied
Ok so I had the same issue on this matter and I did a heavy research. But the simple solution to your problem is that The audio property is an array which has left and right values.
setProp.setValueAtTime(1, [-45,-45]);
This will work
Cheers!

